jquery

how to get table object using cssclass selector?

I have an HTML page with lot of tables. Among that I have a table with the following format <table><tr><td class="myclass">..</td></tr> <tr><td class="myclass">..</td></tr></table> How can I get the object of this table using the class selector in jquery? ...

Use jquery to retrieve alot of data

Hey guys I created this chat system that used to work fine till number of messages increased (over 300 messages and i want it to take up to 1000)started to cause slow script and takes time to retrieve all data. The idea depends on selecting the data XML style and then add it to a specific tab and repeat the act with setTimeout,is there ...

Using jQuery live() to initialize plugins?

Using jQuery, what's the best way to automatically initialize a plugin on all current and future elements of a specific class? For example, say I want all <input type="text" class="datepicker" /> elements to have the jQuery UI Datepicker plugin, including any I might create at runtime. Essentially, I want to do something like this: $(...

Colorbox does not refresh its contents when I change URL

I am trying to make use of Colorbox on my webpage. One specific feature does not work as expected, though. In their example (Outside Webpage - Iframe specifically) Google appears in the Colorbox when clicked. When you change href on that link (Using Firebug or JavaScript, e.g.) to, let's say, Yahoo, it works as expected and Yahoo is dis...

Add a loading graphic jquery

I am using the jquery ajax api so load in some content, the code looks like this, $.ajax({ type:"POST", url:"/search/location", data: getQuery, success:function(data){ //alert(getQuery); //console.log(data); $('body.secEmp').html(data); //overwrite current data setUpRegionCheckBoxes(); //fire fun...

jQuery validator and a custom rule that uses AJAX

Hi, I read your reply regarding the jQuery validator where you outline a method to check a username against a value in a database. Ive tried implementing this method but no matter what is returned from the PHP file I always get the message that the username is already taken. Here is ths custom method... $.validator.addMethod("uniqueU...

Add calendar datepicker with Jquery on dynamic table.

I am trying to add a Jquery calendar picker to a text box at the time of creation, but I cant find how. When I press a button, it will create a table, the element I want to attach the Jquery calendar picker is: var txtDate = createTextInput(i, "txtDate", 8, 10); txtDate.className = "datepicker"; this.newcells[i].appendChild(txtDate); ...

jquery live event gets executed twice

I am loading content into a page with ajax that will have live click events attached to them. It seems like the first time I load this content everything works as expected. If I load this again, the events fire twice (when put breakpoints in the code). What am I doing wrong? Is there a way I can clear the dom of these elements befor...

not able to close the jquery iframe thickbox when the page is https

I have jQuery thickbox(TB_iframe=true) which shows an https page in an iframe based overlay. the parent page is http & overlay page is https. if i use self.parent.tb_remove() This does not work and gives me Permission denied for <https://www.abc.com&gt; to get property Window.tb_remove from <http://www.abc.com&gt;. Any solution....

Ajaxcontroltoolkit VS. jQuery

hi folks, I asked a question a few days ago about how to customise the calendar extender of the ajaxcontroltoolkit library and got a response saying I should ditch the control kit for jQuery. I have to say I've heard jQuery being mentioned quite a bit and more importantly I've seen it as a requirement for an increasing number of web dev...

Dynamically load Jquery into .js page

Please excuse me if I'm simple here, I want to create a simple widget that people can access from their websites - e.g by copy/past something like <script language="javascript" src="test2.js"></script> <div id="test"></div> anywhere in their web pages. where is dynamically filled via Jquery and the functions in/on test2.js. I can do...

Jquery slideUp flashes problem

I have the strange flash of the content after finishing sliding up. i have add the: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; to the head of my code but then the entire page is jumping the the slidedown occur what is my solution? here is my code jus...

Jquery - Get all other menus to slide up

I have a drop down menu made with Jquery. Right now, if you hover over all the menu items, their submenus will all show at the same time. I would like that if I hover over one menu, then go to the next, that the previous menu's submenu will slide back up. As it is now, I have to hover out of the submenus for them to slide up. To put i...

How to code based clicking of Ajax links with Jquery

How can i implement a code for auto-clicking <a href="#" class="link">test</a> type links? $('a.link').click(); doesn't work ...

How Can I Mage A Custom Version of the jQuery Splitter

Hi, How can I make a custom jQuery splitter. I have used jQuery spliter but it uses nested elements. Is it possible to make it work without nested structure? ...

wrap text around image IE

Hi I have done a bit of searching for a solution to wrap text around an image and came across the JQSlickWrap. http://stackoverflow.com/questions/2457266/jquery-plugin-to-wrap-text-around-images-support-ie6 But it is not working in IE. Is there another way to wrap text around an image? Or is that just not possible for IE yet?... Great...

JQuery $.post not working properly

Can't seem to find a fix for this issue I have the following code on the onclick event of an a html tag: AddVacationToCart( { ServiceSupplier:'Kiki', ProductId:'0;11968;0;0;187;1', Name:'Excelsior', NumberOfStars:'*****', TotalPrice:'1620.00', PriceLevelName:'Standard', Currency:'EUR', Status:'', StartDate:'2010-06-...

remote_function and select boxes in Rails

I have a select box that needs to submit it's value to a server side controller on change. The submit works. The value of the changed element is however not sent. I've scoured some examples online, but none seem to work remote_function( :url => some_remote_function_path, :with => "'key1='+$('elem_id').value +'&key2='+$('ele...

get jquery .load() to append rather than replace?

is this possible? ...

How do I include an element added by jQuery to .each() ?

How do I include an element added by jQuery to .each() ? I added a hidden form via jQuery but it's not being iterated by $([selector]).each() Is there an alternative solution for this? the selector makes it easy for me because I could select all input elements by it that's why I'm using it. Thank you very much in advance! ...