jquery

Sending Multiple Dropdown selected values as Hidden Field using JQuery

I want to be able to send all the selected values from a dropdown box (which allows multiple selection) as a hidden field using JQuery. I was able to send/retrieve a single value on form submission. If anyone can share some code snippet, that would help. Thanks in Advance! ...

I need help understanding js syntax

Before you start reading... You should know that there are many questions below... I will appreciate any help to understand any part of the MIT code(jFlip plugin for jQuery v0.4) which I find very hard to understand You can find the code if you like at http://plugins.jquery.com/project/jFlip And see it working at http://www.jquery.info...

add and remove row from table using button

Hi I would like to have a table with 10 rows 5 of which are visible. Also 2 buttons - and + and if clicked a row is added or removed, same as the + image in the bbc.co.uk site. How would i accomplish this ...

jQuery Tipsy plugin -- manual trigger not working

Hi, I found one jQuery plugin (tipsy) to display tooltip below http://onehackoranother.com/projects/jquery/tipsy/ In link above i could see that manually triggered tooltip is working as designed. I copied the page, and save it locally, as tipsy.htm (together with auto-generated tipsy_files). Again, is still working. Once I copied tip...

I cannot select <title> tag in Atom XML using jQuery.

I get Atom data through Ajax using jQuery. I write $(xhr).find('entry id').eq(0).html(); is OK. But $(xhr).find('entry title').eq(0).html(); can not select anything. title tag is actually exist. Please help. Thank you! ...

How do I pass a searchstring to perform a search?

Hi everybody, again I'm stuck and asking you to help me. I want to enter a search string in an input-field. The search string should perform a search like https://.../=~searchstring The textfield: $("<input id='field-inputSearchString' type='text' name='field_inputSearchString'>").insertAfter('.completed ticket'); I've got two quest...

How do I fix drag and drop for a Google map (v2) inside a JQuery Dialog (1.4.2, 1.8.5)?

Dragging and dropping a marker on a Google Map inside a modal JQuery dialog isn't working properly using JQuery 1.4.3 and JQuery-UI 1.8.5. The following snippet is reproducing the issue in Chrome 6.0 and Firefox 3.6.10 (but not Opera 10.63 which surprisingly doesn't have the problem), and this was working before upgrading JQuery (from...

Asual Jquery Address plugin - problem on Google chrome

I have recently used the Asual Jquery Address v.1.3 and it workes successfully with Firefox but I found the following problem in the Chrome: it can't fire the ExternalChangeFunction envent and there is no alternative from using this event because document.ready fires again when trying to change the address by this script plugin $.addres...

I cannot select <title> tag in Atom XML using jQuery.

I get a Google Picasa web albums' atom data through Ajax using jQuery. This atom data looks like this: http://code.google.com/apis/picasaweb/docs/2.0/developers_guide_protocol.html#ListAlbums When I write $(xhr).find('entry id').eq(0).html(); it is OK. But $(xhr).find('entry title').eq(0).html(); does not select The <title> ta...

jQuery: How to intercept form submits reliably?

Hi, I'm trying to intercept all kind of form submissions for a specifc form on a web page. It looks to be very simple with jQuery: form.submit(function(e) {…}) and it works beautifully if I click the submit button. However there is also an onChange property on a select field which does this.form.submit() and it looks like this call cir...

HTTP Status code 500 from trivial $.getJSON call - why?

I have stripped my getJSON call to the simplest example possible trying to figure out why it's not working but I'm out of ideas. I currently have: public JsonResult MyAction() { return Json(new { status = "OK" }); } $.getJSON('MyController/MyAction', function(result) { alert('worked'); }); The action is called, but the alert does...

jQuery .animate() and jamming image while moving

Hi! How to make sleek animation with jQuery of image moving right or left. It's working much better in Firefox than in Chrome or IE. Especially bad is jamming when duration is set to 2000 or more. Here is a sample of my demo page: http://pastehtml.com/view/1bj06p8.html Code is: $('img#image').mousemove(function(e){ if (e.pageX...

Is there any problem with using HTML5's "data-*" attributes for older browsers?

I want to associate some custom data with some HTML nodes. I was going to use the new HTML5 style 'data-*' attributes. e.g.: <tr class="foo" data-typeid="7">…, and then I was going to select this HTML node and show/hide it etc. by reading the value with $(node).attr("data-typeid"). However this web page needs to work with older browsers...

What's wrong with my usage of closest()?

I have a set of nested DIV's and I need to find each outer box from the inner box. According to jQuery API, the closest() method gets the first ancestor element that matches the selector. So I've tried this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html> <head><title></ti...

what's the best way to parse xml response in AJAX

Hi, I have a server that response the request with XML, I want to parse it in the javascript. I really like the actionscript xml parser that is really easy for me to use. I am wandering is there a very easy/straightforward way to parse the XML I fetched from server? The ideal usage should be: fetchXML new XMLParser. parser.parse access...

Jquery to dynamically change flashparam attribute (config={"playlist":["url"]:"http://localhost/test.flv"}) of an embed tag

Hello I have embed tag and its configured as: <embed flashparam="config={"playitem":[{"url":"http://localhost/test.flv","autoPlay":false}]}" Now i want change the "URL" dynmically. How can i change it using jquery? THX ...

jQUery fadeIn based on url?

Hello, let say i pass url, example.php?mode=select&ID=1#age is it possible to add jquery fadeIn based on url? this url will be on another page, when user click it, a page will load and hence the age filed should be fade in. if this not possible, is there any other way? ...

I want that when the mouse is over one option in my drop-down list, the background color of the option value on my second mask must be changed

Possible Duplicate: I want that when the mouse is over one option in my dropdownlist, the background color of the option value on my second mask must be changed I have 2 dialog mask on my screen On the fist one I have a drop-down list with different option values. On the second I have a div table. I want that when the mous...

a way to make adding and removing classes on a table faster?

I have a large table with 27 columns and between 5 to 100 rows. I have mode switch (checkbox) that switches the view of a table from the first 5 columns (simple) to 27 columns (expert) and back. Currently I use the following jquery method to switch between the modes: $("#ToggleTableCells").click(function(){ if($(this).is(':checked...

jquery - e refer as Event

Hi , In my jquery snippet, am using the function(e) and also in some places i used function(event) How system really understand the e is the event object, is any where they declared by default , ...