jquery

jquery gzip google cached/expires

Hi, I use the google cdn url for getting the jquery / ui. But when I tested using YSlow I found that the both js/css is not gzip though other components from server were gzipped and had expries(it does a content modified check)..should i have to added anything in the url to let know the browser that it should cache../get the gzip conten...

onAfter event in quicksearch plugin for jQuery called too soon

I'm using the quicksearch plugin for jQuery and generally it works well. I've added a function to the onAfter event which gets called but I have found that it is called before the style attribute on the row has been set to "display: none" Is there another event or a way to hook into another event that will fire after this attribute has ...

Jquery UI in IE8: suspending sort behavior while resizing an element that is sortable and resizable

I have a list of elements which I would like to make sortable and resizable using Jquery UI. Combining them works great in Chrome and Firefox. But in IE8 (both in normal and compatibility view), either behavior works great when used separately, but when combined, the resulting mixed behavior is undesirable. My expectation is that resi...

jqGrid JSON add data

Dear all, Let's say I have a perfectly fine JSON serialized string, like so: {"Page":0,"Total":0,"Records":0,"Rows":[{/*blah*/}]} This isn't returned by a particular URL, it's just sitting there, happy as it can be (harcoded). How do I add it to jqGrid? I've tried every conceivable variation of the loadComplete function or a addJSONDa...

How to do basic DOM manipulation (clear content, append to content) with YUI?

I am doing a project with YUI where I attempt to do things I have previously been doing with jQuery. I am finding it difficult to do some basic operations, and namely: clear content of DOM element append to content of DOM element In jQuery, I would do: $(".someSelector").empty().append("<div>something</div>"); How to do the above ...

jQuery get <td> text from <tr> id, <td> is dynamicly generated so I don't know how may or if any

Ok I have a jQuery function already to perform the task I need but is there a way to loop through the cells of a specific with the id="generated_rows" <table> <tr id="generated_rows"> <td class="row_class" id="row_id_1">text 1</td> <td class="row_class" id="row_id_2">text 2</td> <td class="row_class" id="row_id_3">text 3</td> <td clas...

jQuery Hide/Show with Slide on Hover... better way to do this?

Basically having some trouble with using Hover to hide or show an item. The idea is simple, on hover show a div. When no longer hovering, hide it. Problem is if the mouse hovers over the div and leaves too quickly, the show/hide div will stay visible. I'm hoping this is something easily remedied and not a typical problem with the h...

Ajax http / https problem

Hi there, i would like to ask you for workaround on following problem. My site can use http and https protocol, it doesnt affect the content. My site uses jquery ajax calls, which fills some areas on page, too. Now, i would like to do all ajax calls by https protocol. (please dont ask me why :)) When i am on page with https protocol, ...

ASP.NET jQuery AutoComplete - textbox not responding after first search

So far I'm not finding the same problem in other questions on this site. Here's what I'm experiencing: I have an ASP.NET WebForms app with an UpdatePanel containing a search area where I have a ASP:TextBox that I use for a jQuery autocomplete. $(document).ready(function() { $("#tabContainer_tabSearchBreaks_txtSearchName").autocomp...

Resolving relative resources in AJAX content

I'm trying to figure out how to resolve relatively referenced resources inside dynamically loaded content. For example, suppose I had the following page downloaded from /index.html: <html><body> <div id="insert-here" /> <script> $(function(){ $("#insert-here").load("x/ajax-content.html"); }); </script> </body></html> And aja...

Parsing the National Threat Level XML File with jQuery

I'm trying to use jQuery to parse the DHS Threat Level that they have in their XML file, but I can't seem to get it to work. I'm very new with Javascript and non-presentational jQuery, so I'm probably missing something obvious. This is the XML file: <?xml version="1.0" encoding="UTF-8" ?> <THREAT_ADVISORY CONDITION="ELEVATED" /> Thi...

Should I use Google's JSAPI in production code?

Possible duplicate of: should-i-link-to-google-apis-cloud-for-js-libraries also many other discussions, including: http://stackoverflow.com/questions/547384/where-do-you-include-the-jquery-library-from-google-jsapi http://stackoverflow.com/questions/1014203/best-way-to-use-googles-hosted-jquery-but-fall-back-to-my-hosted-library-on-go...

managing html table with tableSorter jquery plugin

I have a sample html table like this <table class="statisticsTable" id="myTable"> <tr> <th colspan="6">This is heading</th> </tr> <thead> <tr> <th>Member Num</th> <th>Member First Name</th> <th>Member Last Name</th> <th>Date of Birth</th> <th>Age</th> <th>Relationship</th> </tr> </thead> <tbody> <tr> <td ...

change images using jQuery?

I'm trying to make an image change depending on the list-item you hover on. I have a container containing an ul. I have three list-items (a small horizontal navigation). The list items are sitting on the bottom of the container which leaves an empty space on top of the li's. I want the empty space above the li's to change images dependi...

Firing order for multiple $(document).ready(function(){... in ASP.NET MVC page

I have a master page Default.master which contains a script tag to load Master.js. <script src="<%= Url.Content("~/Scripts/Shared/Master.js") %>" type="text/javascript"> </script> <asp:ContentPlaceHolder ID="HeadContent" runat="server" /> Then I have a content page Upload.aspx based upon Default.master which...

How can I get an element by name with jquery?

I have a table column I am trying to expand and hide. jQuery seems to hide the column when I select it by class but not by element name. Why does $(".bold").hide(); <--This work $("tcol1").hide(); <--This NOT work?? The second column has the same name and id for all rows:. <tr> <td>data1</td> <td name="tcol1" id="tco...

Jquery how to append and remove on a div click event

Hi, I am new to using jquery and would like to know how to append and also remove the IDs from divs using the click event and appending to html. In the code below I have been able to append the IDs from clicking on a div, but am not sure how to remove. Whichever divs are highlighted yellow should be the ones that are appended. Clicking ...

jquery parsing xml with \n

I'm using jquery to parse some xml. However, the xml has line breaks and spaces in it. E.g. some item instead of some item When I get the text() of the node, I get "\n some item \n" Is there some way I get either strip this white space after text() or just get jquery to ignore it while parsing? Thanks ...

Using the scrollTo jQuery plugin with the Fancy Zomm jQuery plugin

I'm trying to use the Fancy Zomm jQuery plugin to show multiple images in the same lightbox by using the scrollTo plugin to switch to the next of previous image which are all in different divs. The problem is that it seams that I can't use jQuery inside the div displayed by the lightbox Does anyone know how I could use the Fancy Zoom p...

jquery tabindex/focus & hotkeys

There seem to be some problems with tabindex in several browsers so I want to work around these issues using javascript/jquery. Specifically FF3.5 (Mac) doesn't accept tabindex or focus on links at all. I have jquery 1.3.2 and js-hotkeys 0.7.9 running on my website. I have 4 forms on 1 page which I can switch between using a link. Now ...