From: "Michael Geary" <M...@Geary.com>
Date: Sat, 17 May 2008 12:30:20 -0700
Local: Sat, May 17 2008 3:30 pm
Subject: RE: [jQuery] Re: Any way to avoid having this IE warning message?
The idea with setTimeout is not to wait until the page loads - you don't
have to guess at a specific timeout value - but to simply break up a long script into pieces that don't have to all run at once. The typical setTimeout interval for this purpose is 1 millisecond, i.e. the shortest possible timeout. IOW, if a script has to do a thousand things, have it do a hundred of them, However, for what you're trying to do here, that doesn't sound like the A direct translation of your code would look something like this: $(function() { (Well, a direct translation with a couple of liberties - I used the shorter As you can see, the code sets a single handler each for .click and .blur on I tried to understand the use of the varrowId, rowId, varid, and id Reading between the lines, I'm guessing that the actual intent of the code $(function() { function save( $target ) { Does that look like what you want? -Mike > From: laredotorn...@zipmail.com textarea').blur(function() { > Thanks for the link and your response, but I guess I'm slow. > http://groups.google.com/group/jquery-en/browse_thread/thread/ > > On Sat, May 17, 2008 at 5:56 AM, laredotorn...@zipmail.com > > > I have a page has a lot of data and can run slowly. As soon as I > > >http://screencast.com/t/mXOBRKW1T2 > > > (the script is causing this page to run slowly, > > > $(document).ready(function() { > > > $('tr.rowData :text, tr.rowData > > > var id = $(this).parents("tr").attr("id");
> > > saveRow(id); > > > }); > > > }); > > > Unfortunately, I need this code because I want to define these You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||