[jQuery] Re: Unresponsive Script

2009-06-20 Thread waseem sabjee
may be change this line jQuery(document).ready(function($) { to this $(function() { On Fri, Jun 19, 2009 at 11:22 PM, James james.gp@gmail.com wrote: Could this: delay(delayValue); have anything to do with it? In your code, if you comment out all the calls to CreateOnClickEvent,

[jQuery] Re: Unresponsive Script

2009-06-19 Thread bombaru
I've pinpointed the script that's causing the timeout. Commenting this script out resolves the issue. I don't see anything in this script however that is out of place. I'd be curious if some better trained eyes find something. Thanks again for all of your help.

[jQuery] Re: Unresponsive Script

2009-06-19 Thread bombaru
I've pinpointed the script that's causing the timeout. Commenting this script out resolves the issue. I don't see anything in this script however that is out of place. I'd be curious if some better trained eyes find something. Thanks again for all of your help.

[jQuery] Re: Unresponsive Script

2009-06-19 Thread bombaru
I think it's the if/else if statement at the top. If I change the last else if to just an else, I get a syntax error but no unresponsive script error. function mousedownSearchTracking(e) { var $zone = $(this); if (typeof (e.data.action) == undefined) { if (typeof

[jQuery] Re: Unresponsive Script

2009-06-19 Thread amuhlou
what happens if you put an empty else {} after the last elseif? On Jun 19, 10:33 am, bombaru bomb...@gmail.com wrote: I think it's the if/else if statement at the top.  If I change the last else if to just an else, I get a syntax error but no unresponsive script error. function

[jQuery] Re: Unresponsive Script

2009-06-19 Thread bombaru
Same result: Unresponsive script error On Jun 19, 11:17 am, amuhlou amysch...@gmail.com wrote: what happens if you put an empty else {} after the last elseif? On Jun 19, 10:33 am, bombaru bomb...@gmail.com wrote: I think it's the if/else if statement at the top.  If I change the last

[jQuery] Re: Unresponsive Script

2009-06-19 Thread James
What does the function for CreateOnClickEvent look like if you don't mind posting that? On Jun 19, 6:15 am, bombaru bomb...@gmail.com wrote: Same result: Unresponsive script error On Jun 19, 11:17 am, amuhlou amysch...@gmail.com wrote: what happens if you put an empty else {} after the

[jQuery] Re: Unresponsive Script

2009-06-19 Thread bombaru
That's part of Omniture tracking code. Looks like this: function CreateOnClickEvent(sTitle, nEvarNumber, sValue) { try { var s2 = s_gi(s_account); if (SetS2EvarValue(s2, nEvarNumber, sValue)) { s2.linkTrackVars = 'eVar' + nEvarNumber;

[jQuery] Re: Unresponsive Script

2009-06-19 Thread James
Could this: delay(delayValue); have anything to do with it? In your code, if you comment out all the calls to CreateOnClickEvent, does it make the page respond? I think just by drilling in and testing like this, you'll be likely to find the cause of the unresponsive script issues. On Jun 19,

[jQuery] Re: Unresponsive Script

2009-06-18 Thread bombaru
I switched to the development version of jQuery so I could actually see where the offending line was. I'm still getting the same error, but obviously the line number has changed (which will be more helpful). Sorry. Here's the error in the development version: Script:

[jQuery] Re: Unresponsive Script

2009-06-18 Thread James
Do you have other scripts running on the page aside from just jQuery? Such as other scripts that rely on jQuery? On Jun 18, 11:00 am, bombaru bomb...@gmail.com wrote: I switched to the development version of jQuery so I could actually see where the offending line was.  I'm still getting the

[jQuery] Re: Unresponsive Script

2009-06-18 Thread waseem sabjee
try removing your custom scritps 1 by 1 until the error stops or reduces. then post the script here when you find the right one. note : do not trust specific lines as you are using a library there may be a refference in a specific script causing this. On Thu, Jun 18, 2009 at 11:18 PM, James

[jQuery] Re: Unresponsive Script

2009-06-18 Thread bombaru
Yes. A lot of other scripts. I have started to comment out the scripts one-by-one and will see if I can locate the offending one. Is there any reason (that you might know of) why this is happening in 1.3.2 and not older versions of jQuery? On Jun 18, 5:18 pm, James james.gp@gmail.com

[jQuery] Re: Unresponsive Script

2009-06-18 Thread waseem sabjee
are you perhaps using an @ sign in any ajax posts or gets ? On Thu, Jun 18, 2009 at 11:44 PM, bombaru bomb...@gmail.com wrote: Yes. A lot of other scripts. I have started to comment out the scripts one-by-one and will see if I can locate the offending one. Is there any reason (that you

[jQuery] Re: Unresponsive Script

2009-06-18 Thread James
What were the version number of the older versions of jQuery you were using? On Jun 18, 11:50 am, waseem sabjee waseemsab...@gmail.com wrote: are you perhaps using an @ sign in any ajax posts or gets ? On Thu, Jun 18, 2009 at 11:44 PM, bombaru bomb...@gmail.com wrote: Yes.  A lot of other

[jQuery] Re: Unresponsive Script

2009-06-18 Thread ferdjuan
That error has nothing to do with jQuery-1.3.2.js, it's one of your scripts. You're missing a semi-colon or have some unclosed quotes, or you're trying to use a function that doesn't exist. Are you using Firefox with the Firebug plugin to debug? If not, do it, it should give you a more detailed

[jQuery] Re: Unresponsive script when navigating away

2008-11-04 Thread ricardobeat
@googlegroups.com Subject: [jQuery] Re: Unresponsive script when navigating away Oh and :checkbox is a shortcut for input[type=checkbox]. Karl Rudd On Sat, Nov 1, 2008 at 6:05 PM, Karl Rudd [EMAIL PROTECTED] wrote: Instead of doing the search each time, cache the selected objects

[jQuery] Re: Unresponsive script when navigating away

2008-11-03 Thread Cheng S . Kai
Thanks.! will try that Regards, Kai Date: Sat, 1 Nov 2008 18:07:18 +1100 From: [EMAIL PROTECTED] To: jquery-en@googlegroups.com Subject: [jQuery] Re: Unresponsive script when navigating away Oh and :checkbox is a shortcut for input[type=checkbox]. Karl Rudd On Sat, Nov 1, 2008

[jQuery] Re: Unresponsive script when navigating away

2008-11-01 Thread Karl Rudd
Instead of doing the search each time, cache the selected objects. script type=text/javascript $(document).ready(function (){ var checkboxes = $('div[name=limit1] label input[type=checkbox]'); checkboxes.bind('click',function(){

[jQuery] Re: Unresponsive script when navigating away

2008-11-01 Thread Karl Rudd
Oh and :checkbox is a shortcut for input[type=checkbox]. Karl Rudd On Sat, Nov 1, 2008 at 6:05 PM, Karl Rudd [EMAIL PROTECTED] wrote: Instead of doing the search each time, cache the selected objects. script type=text/javascript $(document).ready(function (){ var

[jQuery] Re: unresponsive script error on long page with many clueTips

2008-04-08 Thread az
Thanks for the explanation, Karl. That makes a lot of sense. Your chunking solution does seem to prevent the unresponsive script errors when the page is loading. However, I still get them when I navigate away from the page -- I assume jquery is unbinding all of the cluetips. For that reason

[jQuery] Re: unresponsive script error on long page with many clueTips

2008-04-02 Thread az
Thanks to both Karls for your help! I'll definitely try out the chunking method. Since I'd like to understand what I'm implementing, can you briefly explain why this way is better? thanks, az On Apr 1, 4:59 pm, Karl Rudd [EMAIL PROTECTED] wrote: You can initialise the tips in chunks.

[jQuery] Re: unresponsive script error on long page with many clueTips

2008-04-02 Thread Karl Rudd
JavaScript in browsers is single-threaded (and thank goodness for that). So when JavaScript is running (in most browsers) everything else is queuing up. When you break the code into chunks, via setTimeout, you are (essentially) yielding control back to the main event loop periodically, so it has

[jQuery] Re: unresponsive script error on long page with many clueTips

2008-04-01 Thread Karl Swedberg
Hi az, The only way I know of to deal with binding events to that many elements directly without incurring huge costs (unresponsive script errors, etc.) is to do it inline, as you suggested. Another approach is event delegation, but I haven't set up the plugin to take advantage of that

[jQuery] Re: unresponsive script error on long page with many clueTips

2008-04-01 Thread Karl Rudd
You can initialise the tips in chunks. Instead of doing something like this: $('a.tip').cluetip(); Do something like this: $('a.tip').each(function() { var t = $(this); setTimeout( function() { t.cluetip(); }, 10 ); }) You'll still have a bit of a CPU usage spike but it shouldn't

[jQuery] Re: unresponsive script error on long page with many clueTips

2008-04-01 Thread Karl Swedberg
Ah, great idea! thanks, Karl --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Apr 1, 2008, at 7:59 PM, Karl Rudd wrote: You can initialise the tips in chunks. Instead of doing something like this: $('a.tip').cluetip(); Do something like this: