javascript

Coda Slider scroll effect. Click button and change panel.

<?php echo $javascript->link('jquery-easing-1.3.pack'); ?> <?php echo $javascript->link('jquery-easing-compatibility.1.2.pack'); ?> <?php echo $javascript->link('coda-slider.1.1.1.pack'); ?> <script type="text/javascript"> var theInt = null; var $crosslink, $navthumb; var curclicked = 0; theInterval = function(cur){ clearInterval...

Javascript algorithm to find elements in array that are not in another array

I'm looking for a good algorithm to get all the elements in one array that are not elements in another array. So given these arrays: var x = ["a","b","c","t"]; var ​​​​​​​​​y = [​​​​​​​"d","a","t","e","g"]; I want to end up with this array: var z = ["d","e","g"]; I'm using jquery, so I can take advantage of $.each() and $.inArray(...

difference b/w <script........

What is the difference between: < script language="javascript" type="text/javascript">< /script> < script type="text/javascript">< /script> < script language="javascript">< /script> ...

javascript function call automatically on page onload instead on onclick

I am facing a very strange problem. I have javascript function in my aspx page that i call on the onclick event.but on one particular machine it always automatically called on body onload in infinite loop. Though I already remove all the caching and delte the history and temp files. This seems very strange to me .It works fine on all ...

show data in another cell after press enter

i have this code <tr> <td width="300"> <label for="tag">Model</label> </td> <td> <td width="10">:</td> </...

How to save webpage in QT webkit as "save as complete webpage"

Hello, I need to save web page using QT webkit similar to "Save as complete webpage". Following are my requirements, Save the index html file, maintaining entity encoding. Need to download all linked images and other resources. Need to change resource path in html page to local downloaded path. Need to maintain webpage current stat...

Validation with Jquery Form Plugin

Hi, This is the first time I have attempted to make a form using jquery and php. I used the folks over at Mid Mo Design as an example but even with that tutorial am still having trouble getting it to do what I want. This is the code I have been using. As well as jquery 1.4.1 and jQuery Form Plugin 2.43. Any help would be greatly apprecia...

Input a comma after every 10 digit in Javascript?

I put 10 digit mobile numbers in a Textarea like the follwoing. 242452354643663463636346366363463636365636363634656346 but i need to put comma(,) after every 10 digit number. ...

Open a file:// protocol with UNC paths in HTML page

Hi - I'm trying to open a file located on a networkshare by giving the anchor tag path = file://///servername/folder/file.docx This works in IE8 and i'm able to open the file in word, however in Firefox nothing happens. I believe it's due to some secruity settings in Firefox. I tried about:config and turning off the checkloaduri value. ...

DWR and other possible tools for build java application level Ajax framework

I would assume that this question would have been asked in different ways already, but I could not find one so posting it. Sorry if its a repetition The basic idea which I am trying to explore is to design a common Ajax framework/API for our application. The main requirement is to have a common framework in the product which every modul...

Can I prevent an alert() with a Google Chrome Extension

Can I create a Google chrome extension to prevent the page from doing an alert() ? ...

Json Traverse Problem, not able to traverse values

I m getting the below return from ajax call but not able to traverse it please please help. { "1": { "tel1": null, "status": "1", "fax": "", "tel2": null, "name": "sh_sup1", "country": "Anguilla", "creation_time": "2010-06-02 14:09:40", "created_by": "0", ...

Any good alternative for ASP.NET validation controls ?

Is there easy to integrate ASP.NET with jQuery form validation plugin or any other JS framework to replace standard ASP.NET client validation ? ...

textbox issue regarding shrinking first time input text

i have a problem regarding the textbox. i have done the textbox auto expandable but when i insert the text first time then the textbox shrink in size from their original size.but my requirement is that when my text is exceeding the text box length then it auto expand. my code is <script type="text/javascript"> $(document).ready(...

how to hide a div after some time if no activity occurs on that div.

hi folks, Am trying to hide a div when the user doesn't click any button on it for 15 seconds. I know how to hide and display the div by using element.style.display = 'none'; but am not able to understand how to calculate the time after last activity on the div. Regards, Snell ...

For business people to manage, keep binary images in MySQL or just the urls?

Hello everyone: I am working on a task to enable image uploading and auto-scaling(from full sized to thumbnail) by jQuery & PHP. I can naturally come up with two approaches : First, store both images as binary objects directly into MySQL; Second, store only urls to the images and keep the images somewhere on server. The images are ...

Call an anonymous function defined in a setInterval

Hi, I've made this code: window.setInterval(function(){ var a = doStuff(); var b = a + 5; }, 60000) The actual contents of the anonymous function is of course just for this small example as it doesn't matter. What really happens is a bunch of variables get created in the scope of the function itself, because I don't need/want to poll...

Jquery tablesorter plugin to sort format: 16-Jan-2010

Hi! I'm using jQuery Tablesorter and I have a problem sorting tables with date values of format: 16-Jan-2010 How do I make them sort properly? Thanks in advance! ...

How to read from CSS files with jQuery

Ok, I have a HTML page with jQuery included. I have a CSS file with a good load of lines in, I would like to read all styles for a given element from the external CSS file... Not the inline styles... I have the following code (which looks like it should work...): var styleProperties= {}; var getCssProperties = ['width', 'margin', 'hei...

Is it possible to use an incremental value within a variable name whilst declaring it within a loop?

Hi, I'm creating function which will read different XML files each time that will contain different amounts of the same nodes. I have already created a loop which stores the ID of each node into an array, and now I want to create variables for each array member which store attributes of the node with each ID. Because the number of nod...