jquery

jQuery Datepicker - close on input click

Hi all... I am using jQuery Datepicker and I have a little problem. If the datepicker is opened, and you click on the input field again, nothing happens. How can I change that.. the picker to be closed on input click if it is already opened ? Thanks in advance... ...

Fastest way to build an XML request with jQuery

I am accessing a certain web service API which requires XML data in the request. For example, the API might be expecting: <?xml version="1.0" encoding="utf-8" ?> <root> <a>1</a> <b>2</b> </root> What's the easiest way to build that XML request, possibly using jQuery? Is there any standard serializer that I can use to build a ...

jquery.serialScroll offset problem (picture align)

Hi there, I am trying to implement jquery.serialScroll as gallery with fixed width and random width pictures (here). Everything works fine but I cant properly set the offset setting, so when you scroll to last picture there is a lot of grey space on the right. When I had tried to set offset (about 700), gallery froze down :( Do you kno...

adding the .val to the autocomplete

I am trying to implement this jQuery auto complete function but the problem is this i need the value of the previous input field. getting the value from the previous is easy, I just dont know how to add it to the call the call for the previous value is on top of the document.ready and this doesnt get called when the user types I NEED ...

php and javascript design

question relates to PHP and Javascript for now every table has a form with input tags that each of them has id="field_from_table" GLOBAL_TABLE=name of that table GLOBAL_FIELDS=name of fields in that table GLOBAL_ID=ID value for table. every field also have a label for im. some of the fields are not text. I want to get/set those inp...

Jquery: how hide/show tree elements based on search criteria?

Hello, I have a tree view based on < ul > and < li > tags. I am trying to hide the branches based on filter text. Here is my show/hide code: $("#filter").change(function(){ var tval=$(this).val(); $("li").show(); $("li").not(":contains(\'"+tval+"\')").hide(); $("li").is(":contains(\'"+tval+"\')").show(); ...

jquery multiple droppables

Hi. Basically creating a file manager. User clicks browse and a div populates with folders and files from the server and displayed as icons. I want to be able to drag files over folders and then run my server file move script. I got the file dragging working but when i move over a folder it picks up all the folders.. here is the folder ...

Parsing multipart/mixed responses in jQuery

Good day. I'm new to jQuery, and have a passing familiarity with javascript, having spent most of my time on the server side. My interest is in posting in the browser a multipart/form-data form object consisting of one text field and one file. In response, the server returns a multipart/mixed response consisting of one part html or js...

jQuery visibility option on IE

I have problem with this JS code. When I started to test it, it is working properly with FF and Chrome but not with IE8. I guess, something is wrong with IE visiblity property or the mouseover events. I tried everything but I am so deep in here I can't see the whole picture. How can I make it run properly also in IE. Hate IE :)) $(doc...

Jquery - Post with variable

Hi, i have a problem with the jquery post. my vars var checki = '1'; var my_var = 't95'; this works fine var data = { 'mo': 'usr', 'dt': 'update_uis', 'values[0][t95]': checki']}; but when when i insert the var, it will not work var data = { 'mo': 'usr', 'dt': 'update_uis', 'values[0]['+my_var+']': checki']}; // dont work $.a...

JQuery dropdown list values to php array?

How can I pass all the values from one dropdown list to one PHP array? Let's say that I have one dropdownlist name="country" and id="countries" Options: val="Japan" Japan val="USA" USA val="UK" UK How can I parse the values to one PHP array? The content is generated dynamically from another dropdownlist by chained method. Cheers! ...

CodeIgniter + jQuery .ajax form submit return results in a table row

Hello I think it should be fairly easy, I simply can not find an answer for it. I am using a Codeigniter for a simple CRUD application. It displays the result in table. What I did, was to use jQuery .ajax to submit the form. It works (almost) perfectly. I am able to submit a form without reload but the results are not shown unless I...

jQuery hover that changes various backgrounds with infinite loop until mouse is out

I've a <div> with a background-image that will change the background 4 times with a delay of 300ms. I've tried with setTimeout which seems to work correct, but clearTimeout(t); when the mouse moves out fails because the backgrounds continue changing. $(document).ready(function() { $(".image").hover(function(){ var obj = $('....

jquery editor problem in dialog

Hello, This is my code :- $(document).ready(function(){ $('#dlgEvent').dialog({ autoOpen: false, height: 370, width: 470, modal: true, open : function(event,ui){ $('#EventDesc').wysiwyg(); ...

jquery separate the onclick events of wrapped elements

I have an anchor link inside a div. I would like both the anchor link and div to process onclick events separately, but right now clicking on the anchor link also triggers the onclick event for the div. How do I prevent this? Here's the code: <html> <head> <style> #box { background-color: #ccffcc; ...

After the autocomplete is finished

I am using this autocomplete Plugin which works great but the problem is $('#request_song').autocomplete({ serviceUrl: '<%= ajax_path("trackName") %>', minChars:1, width: 300, delimiter: /(,|;)\s*/, deferRequestBy: 0, //miliseconds params: { artists: 'Yes' }, }); <div class="field"> <label for="request_song">Song</label...

jquery validate: how to keep error messages from altering the form disposition

When error messages appear in the form, they displace elements to the left. How can this be avoided? Example ...

jqueryui event and ui object properties

In the jQueryUI framework for Interactions you can do custom functions and they take two parameters 'event' and 'ui'. I know it has to be obvious somewhere but I cannot find out what methods and properties are available on those two parameters. Does someone know what methods and properties are available on those parameters or where I c...

How to stop concurrent ajax calls

Ok so I have an autocomplete field that is making an ajax request every keystroke....which can slow things down alot. If you visit here and use the email: [email protected] pass: test12 If you have firebug open and start typing fast you will see all the see all the ajax requests. My question is can i cancel the previous request if there ...

How can I add an array to an array of arrays using jQuery?

I have an array, as below: var cString = [ ['1','Techdirt','www.techdirt.com'], ['2','Slashdot','slashdot.org'], ['3','Wired','wired.com'] ]; to this array I want to add another in the same format: var test = ['4','Stackoverflow','stackoverflow.com'] I've tried using: var newArray ...