jquery

jQuery traversing parent and children

I have a nested unsorted list and I want to place a click event on the parent checkbox so when it is check it checks all the children checkboxes and vice versa. For some reason I can only get the selector to get all inputs of type check box... ive tried a variety or ways, this is one of them. any suggestions ? <ul id="parent"> <li> <...

Animation for adding DOM elements with jQuery

At the moment I'm adding elements to a page on a click event using after. I'd like to animate this in some way so the new elements don't suddenly appear out of nowhere. I'm not bothered what animation method is used as long as it shows to the user what is happening when they click. I've never used animation in jQuery before and have on...

jquery.toggle and layout issues when used in table

I have a table. Each row is a record. If you click on a row (record), via jquery, I create a new TR below it, and then insert a new table (related sub-set of data pertaining to the above record) via AJAX. This is first loaded and then I expand the TR in a nice animated fashion. It looks good. Now that it's loaded and expanded, I want t...

jquery add() and binding events

Hi, If I have following in jQuery $("#someId").add("#someOtherId").bind("click", function(e) {... I get the click bound only to the last element. How can I use add() and bind all elements to some event? ...

Why is Request.ContentType always empty on my requests?

I have a base controller class that attempts to look at Request.ContentType to see if its a json request or a regular HTML request. The base controller then sets a simple enum on the base class and the appropriate controller returns the correct type. However, Request.ContentType is always an empty string. why is that? my base control...

UpdateProgress and FileUpload problem

Hi, I have a fileupload control with an updatePprogress in an updatePanel like this: UpdatePanel is: updExtraSmall <Triggers> <asp:PostBackTrigger ControlID="lnkExtraSmall" /> </Triggers> <ContentTemplate> <table> <tr> <td style="border: 1px"> <asp:FileUpload...

replace anchor text with jquery

Hi, i want to replace the text of a html anchor: <a href="index.html" id="link1">Click to go home</a> now i want to replace the text 'click to go home' i've tried this: alert($("link1").children(":first").val()); alert($("link1").children(":first").text()); alert($("link1").children(":first").html()); but it all gives me null or ...

Move list item to top of unordered list using jQuery

Lets say i have the following unordered list <ul> <li><a>Hank</a></li> <li><a>Alice</a></li> <li><a>Tom</a></li> <li><a>Ashlee</a></li> </ul> What im looking for is when i click on Tom, that it moves (animated and without dragging) to the top of the list (index 0). Ive considered jquery sortable, but i cant find a way to activate...

Adding a new script file to a page using GreaseMonkey

My employer is blocking the Google CDN domain that provides the jQuery file to so many websites: http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js I want to use GreaseMonkey to provide that jQuery reference from a different domain. Is this possible? Can I use a GreaseMonkey script to tell a page to load it's jQuery refer...

jQuery variable into selector not working in ie

Hey, I'm desperate right here. jQuery: $(".rotateme li a").click(function(){ var curid = $(this).attr('id'); $('#box'+curid).fadeIn('slow'); return false; }); $('.close').click(function() {$(this).parent().fadeOut("fast");}); Html (the .rotateme li a bit) <ul class="rotateme"> <li><a href="#" id="ca1"><img src="...

What is the difference between $("*", $("#container1")) and $("#container2").find("*")?

What is the difference between $("*", $("#container1")) and $("#container2").find("*")?. I usually use AA, but not well in that case can be more ultil the odd. <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script> <script language="JavaScript"> $(function(){ var ...

Periodically testing of elements that are added to the DOM after pageload.

I've got a page where you upload videos, those videos are then encoded (much like Youtube). The encoding part can take some time and I want to automatically show the user if encoding is done by periodically polling the encoding status from within the page, if encoding is completed I want to replace the encoding icon with a "play" button ...

How to begin working with GwtQuery?

Hi, I've dived into the GWT world a couple of months ago and find it quite interesting. I'm currently developing a web application which is to be used internally and so we need to resize the browser window, which can only be done by JSNI. After hitting some problems regarding the JSNI I was advised to look into jquery and I found that i...

Jquery Update Browser Location, Don't Redirect

I'm building a series of basic accordions for a project. We want them to have static, linkable pages. So we've created invidividual pages for each of the open states as well. For example, /whoweare is the main slider. But we have a sub slider located at /whoweare/whatwedo What I'm looking to have done is, when a user clicks a heade...

javascript/jQuery setInterval/clearInterval

i'm using setInterval to check if a p(html paragraph) has a certain text value. if it has it i want to clear interval an continue code flow. i'm using this in a jQuery plugin so if the paragraph has tat text value i want to clear interval and then continue with a callback function. so i tried something like this: var checkTextValue = se...

Open an accordian panel with a function

ok here is the full code with the spelling corrections and everything. I am still getting an error. code for parent is : $("#leftNav").accordion({autoHeight: true}); <div id="leftNav"> <h3><a href="#">Client</a></h3> <div> static text </div> <h3><a href="#">Account Summary</a></h3> <div> static text </div> <h3><...

Javascript validate X number of fields in an HTML form

I have a form, that has about 10 text entries (user, address, email etc;) and about 50+ entries that are quantity entries (users select 2x of this item, 5x of this item). Now I inherited this form from someone else (now its my duty to keep it up to date, when the customer requests it). I don't want to re-write it all, but I would like ...

How to invalidate cache when the page is modified via Ajax?

I have a page that has some editable features that are updated via Ajax when they are edited. There are some values that are stored in a cookie so that they can be loaded when the page is loaded. If the user makes a change, then goes to a different page and clicks the back button to return, the original page is loaded from cache withou...

ajax jquery webhosting question

hi guys, I have something weird going on here. I just finished a site for a client and I uploaded and I can reach the site no problem. I have a tab on the site where you click a collapsing tree and click on a topic and it calls up an article from a db. On my local development platform (xampp vista) this works nicely but once I uploaded ...

Jquery - Too Much recursion

Getting this error with jquery & jquery.form. Site has been live for awhile..upgraded to latest version of jquery & jquery form and still having same issue. This is the error in firebug too much recursion [Break on this error] (function(){var l=this,g,y=l.jQuery,p=l....each(function(){o.dequeue(this,E)})}});\n And in IE8 it's a popup...