jquery

Return node text (non-recursive)

Hi, I'd like to return a table cell's node value. The method text() however, goes down the whole DOM tree and returns a string of all nested nodes (the table cell may have text and html included). Once I have extracted the node's string, I'd like to modify it and write it back to the node. The modified text consists of text and html. I...

Javascript / jQuery - How do I find the memory leak in my large amount of code?

I've written a lot of code for a website I'm developing and only just now realised it has a memory leak. I noticed Firefox getting rather slow over the day and checked my task manager to find it idling at 600,000 K. Seemed odd and so I killed it/restarted it. Then realised that, while watching the task manager, the more I played around ...

jQuery Slideshow cycle plugin backslash error

I'm helping a friend with a custom WordPress theme she purchased from Theme Forest that has a jQuery slideshow using the cycle plugin. It works just fine on all the Pages. I looked at the code and the only thing I can figure out is that on the blog pages it processes the code incorrectly by adding a backslash in front of all the " and ...

using .ajax in jQuery to get JSON data success but no data returned

I'm trying to get some json data via .ajax() method in jQuery, here is my code: $.ajax({ url: "http://localhost:8080/abc/message.js", type: 'GET', data: {}, beforeSend: function(x) { if(x && x.overrideMimeType) { x.overrideMimeType("application/j-son;charset=UTF-8"); } }, datatype: 'json', ...

jsonp memory leak

Possible Duplicate: jsonp memory leak So I've recently setup a chrome extension to refresh a page and call a jsonp web service I've written but there is a memory leak. I've searched all of the internet to find solutions and nothing seems to work. I've used the plain jQuery .ajax() call specifying "jsonp", I've used jquery-json...

jsonp memory leak

So I've recently setup a chrome extension to refresh a page and call a jsonp web service I've written but there is a memory leak. I've searched all of the internet to find solutions and nothing seems to work. I've used the plain jQuery .ajax() call specifying "jsonp", I've used jquery-jsonp found at http://code.google.com/p/jquery-jsonp/...

jquery date picker target

hi every one . on my page there is two input field 1. startDate 2. endDate i have a jquery script to pick date which is called on window onload.that script works on only one input field but i want on both script on same page is:- window.onload = function(){ new JsDatePick({ useMode:2, target:"startDate", ...

ajax jquery - track changes to table

Hi, Im updating a particular table with ajax using jquery every 5 seconds. I wish to highlight in yellow, any row that has been freshly inserted or changed. How do I keep track of what has changed ? Can this be done in jquery ? (My backend is django/python) ...

Triggering "error" callback function for jQuery AJAX from JAVA

How do you trigger the "error" callback function for jQuery AJAX from JAVA? ...

how to use jquery time picker?

dear all..i'm newbie at time picker. can you tell me how to use jquery time picker after download? how to make it show inside form? ...

Highlight active link using jQuery.

I would like to know how to make a link on a navigation menu stay selected when you have clicked on it? A good tutorial or example would be nice:) ...

Should we consider Flash as a last resort?

When we make a website with some interactivity (not whole flash site). should we always find a way JavaScript way before to use Flash? Should we consider Flash a last resort, if possible? It is true Flash will not be indexed by Search engine. and it will not run on apple devices. Will javascript also perform better than flash, in terms...

keyPress event does not reflect changes in k parameter

Hi. I added codes (jQuery) for keyPress and click of search textbox and button respectively. Now the search query reflects in the browser (http://samplesite/default.aspx?k=query) when I click the button, but it does not when I press enter inside the search textbox. Anyone know this issue? Thanks. // Keypress event for search box $('#se...

jqGrid - filtering cells with html

I'm trying to use jqGrid's (3.7.2) toolbar filters, but some of my cells contain HTML that interferes with the filtering. My idea was to virtually strip the HTML just before comparing it to the search query, but I couldn't find where the comparing actually happens. Does anyone know how to do such thing? Any better ideas? Thanks! tableT...

trouble swapping divs from li click event

I'm new to jQuery and am having a hard time trying to get something very simple to work. I have the following basic html: first I have a list of buttons <div id="my_menu"> <ul> <li><a href="" class='1'">Link 1</a></li> <li><a href="" class='2'">Link 2</a></li> <li><a href="" class='3'">Link 3</a></li> </ul> </div> Then I have some di...

How to automate paging on GridView using Timer from javascript

I have a gridview on my page. I want the page to show me next 10 records after every 10 seconds. i.e. automated paging. I have implemented manual paging on Gridview. How can I do this using Client Side event triggering ...

from php to jquery

hi, i have array in php, and i need work with this array in jQuery. What best way send array( or variable ) from php to jQuery? Thanks ...

How to get the selected value from a asp:DropdownList using jQuery

I have the following code and it gives me the text but not the value. What is wrong and how do I fix it? function pageLoad() { $('#<%=dpEmploymentStatus.ClientID%>').change(function() { alert($('#<%=dpEmploymentStatus.ClientID%>' + ' option:selected').text()); }).change(); } ...

jQueryno.Conflict

how to use in joomla no.conflict. ...

jquery: how to select element from innerHTML?

hi all, I have to autocomplete for a textbox within an innerHTML(this innerHTML is loaded by AJAX) , normally if we use $("#elementid").autopopulate will work if elementid is within in an html content, but it will not work for if elementid is within an innerHTML in the same page. When i checked with Firebug, the AJAX call is not fi...