jquery

How to hijack form submit event when triggered by dropdownlist change

On my webpage I am displaying a table of data and I want to give the user the ability to sort that data by using a dropdownlist (e.g. By FirstName, By LastName, By State etc...). I would like to use Ajax to load the sorted data into the data table without a page refresh. I'd also like to use javascript in an unobtrusive way so that the ...

how to change the content place in html pages without changing header and footer

I have five html pages ,all pages have same search tab,header,footer, my question is when enter particular searchtext and click search only the content place where the output will be displayed has to be changed in the html pages without change in header and footer. I am using html ,javascript,jquery on clientside and webservices with ...

Writing a new jQuery plugin

<table class="data" border="1"> <tbody> <tr> </tr> <td><input type="checkbox" /></td> <tr> <td><input type="checkbox" /></td> </tr> <tr> <td><input type="checkbox" /></td> </tr> </tbody> </table> While iterating through each tr element...

Can I set 2 address at a time in google map. ?

Hi I have to set two address at a time in google map. User provides these two address. after submitting I have to show these two address on map. amy body knows the script. Please help me. ...

Jquery Media Plugin - alert video finished once video has finished

Hello All, Is there a way to add a callback function to Jquery Media Player so that an alert (for example) displays once the movie/video has ended?? Cheers ...

Internet Explorer 7 css js table column display bug

Hey everybody, There is a strange bug which I can't solve. The bug is reproducable by this simplified example: css: table.class1 td.subclass1{ display : none } table.class2 td.subclass2{ display : none } html: <table class="class1"> <tr> <td class="subclass1"> Invisible </td> <td class="subclass2"> Visible </td> </tr> </tabl...

how to download the jquery-ui file of Uncompressed source , i download the file always jquery-ui-1.8.5.custom.min.js

how to download a jquery-ui file without **.min.js thanks ...

How to make my page non clickable when a form submit process is working ?

I would like to load an overlay image or something when a long time form submit process is working. So that no one can click, any other links in the page during the process, and at the same time show a loading image over the overlay image...how can i make this work with jquery.. ...

How to add a class to li which could be the first, second or third parent of input with jquery?

I would like to add a class called 'focused' to a parent li when I click a input field with jquery. <form action="http://localhost/daikon2/index.php/projects/admin/newproject" method="post"><ul id="createproject"> <li id="proname" class=""> <label for='project_name'>Project Name</label> <div><input type="text" name="project_name" value=...

How to get word under cursor?

Assuming there is a mousestop event attached to the entire document, what is the best way to figure out the exact word under the cursor (if there is any text), when the mouse stops moving? I can get the underlying (jQuery) element from the event handler - $(document.elementFromPoint(e.clientX, e.clientY)) - but then what is next? So fa...

Using jQuery, what selector do I use to get the last thead tr for each matching table?

On a single page, I have two tables. Each of them has a class of "data". Each of them has theads. I want to apply formatting to the last row in each of the table's theads. I originally had this: $('table.data thead tr:last').children().addClass('col'); Which works fine if there is only one table on the page. But if there are multipl...

how to send the event to the clone without using jquery on iphone .

this is the code: $("#draggable").draggable({ helper: 'clone' }); use this code , if you drag the div , you will drag the clone , this is my code without using jquery and jquery-ui,i want to drag the clone-one when i drag the div: var $=function(str){ var div=document.createElement('div') div.innerHTML=str; return di...

Drupal: add a js function callback to Drupal.settings.

Im using [drupal_add_js_()][1] function to add a fancybox effect to some image in my nodes (im not using the Fancybox module becose doesnt fit my needs). In short, i need to add the titleFormat function to format the image title; In my javascript file, it looks like: $("a[rel=myfancy_group]").fancybox({ 'transitionIn': 'elastic', ...

jquery remove tags from external files and save them

Greetings, I need to remove tags (about 1000) within an XML file. I tried it with jquery, but with no success: <html> <!--jquery app removes specific <t2_patch ...>-tag --> <script src="http://code.jquery.com/jquery-latest.min.js"&gt;&lt;/script&gt; </head> <body> <button>Kill t2_patch-tags </button> <script> $("button").clic...

Error while updating jQuery intellisense on 64 bit

Hi, I am running VS2008 SP1. I have jquery-1.4.2.js and jquery-1.4.2-vsdoc.js files with me. But I am still getting error: "Object doesn't support this property or method @ 862:1" The thing is that I was unable to install the update patch "VS90SP1-KB958502-x86" as I am running 64 bit and when I try to run the patch I get "...not valid w...

Problem preventing form submission with jquery

I wish to execute a jquery based ajax form submission on pressing the enter key. Obviously this involves stopping the normal form submission process. My form consists of a single input field. Here is the code: <script type="text/javascript"> $(document).ready(function() { // add vid ajax $.ajaxSetup({ cache:false; ...

How would i get the text for this input text?

I need to see if there is a current watermark set for an input field but i am not sure if there is a getter for this watermark plugin. I know i can set a watermark like this $("#request_money").Watermark("Not now"); I tried this but it doesnt seem to be setting the value if($("#request_money").val() == "Not now"){ $("#request_mone...

jquery dialog not centering

EDIT: rewrote this to be html only In the following code, why is the jquery dialog that's displayed not centered? The dialog is opened by clicking the "test" button on the page. <html> <head> <script type="text/javascript" src="jquery-1.4.2.min.js"></script> <script type="text/javascript" src="ui/jquery.ui.core.js"></script> ...

jQuery iframe file upload - trigger success or fail

I have this javascript which uploads a selected file via the iframe. I need to be able to determine from the iframe whether the file was successfully uploaded or not. The problem is that it could be 3 seconds to upload the file or 30 seconds. The best method I can think of to trigger a function when the upload completes from within th...

How can I trigger a function when all my ajax calls are finished?

Hi, I'm calling several ajax search services with jQuery and would like to trigger a function that merges the results when all the calls are finished (some kind of callback function waiting for all callbacks to have returned). What's the best method to achieve that? thanks jul ...