[jQuery] Re: HELP: Debugging Issue

2007-11-20 Thread polyrhythmic
On Nov 20, 2:54 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote: > > In many cases, a better solution for the thousand mouseovers, clicks, etc. > > is to use a single event handler on a parent element and inspect > > event.target in the event handler. That's extremely efficient and nearly > > as ea

[jQuery] Re: HELP: Debugging Issue

2007-11-20 Thread Josh Nathanson
In many cases, a better solution for the thousand mouseovers, clicks, etc. is to use a single event handler on a parent element and inspect event.target in the event handler. That's extremely efficient and nearly as easy to code. Good point Michael, that should be investigated before going

[jQuery] Re: HELP: Debugging Issue

2007-11-20 Thread Michael Geary
> > no you should NOT use inline code, never again... > Sorry Nicolas, that is not true - try to do 1000 mouseover > binds or so on a page and see how it goes for you. jQuery > is fantastic but in some (very few) situations it is not quite > fast enough. > > Obviously this is a "last resort"

[jQuery] Re: HELP: Debugging Issue

2007-11-20 Thread Josh Nathanson
sh)" Sent: Tuesday, November 20, 2007 4:19 AM Subject: [jQuery] Re: HELP: Debugging Issue no you should NOT use inline code, never again, even if you're playing your life ! 'Script taking to long' is usually a bad code design: infinite loop or something like that. nicolas

[jQuery] Re: HELP: Debugging Issue

2007-11-20 Thread STuFF
no you should NOT use inline code, never again, even if you're playing your life ! 'Script taking to long' is usually a bad code design: infinite loop or something like that. nicolas challeil On Nov 19, 6:24 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote: > A "script taking too long" error gene

[jQuery] Re: HELP: Debugging Issue

2007-11-19 Thread Josh Nathanson
A "script taking too long" error generally means that you are trying to bind event handlers to too many elements, or just overloading the capability of jquery in some way. You may want to look at going "old school" and putting events inline in your html markup: -- Josh - Original Mes

[jQuery] Re: HELP: Debugging Issue

2007-11-19 Thread fambizzari
Thanks. On Nov 19, 2:03 pm, James Dempster <[EMAIL PROTECTED]> wrote: > oops... or alternatively use break points and step though your coding > using the debugger in firebug > > On Nov 19, 5:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > On one page, Firefox throws the "a script is t

[jQuery] Re: HELP: Debugging Issue

2007-11-19 Thread James Dempster
oops... or alternatively use break points and step though your coding using the debugger in firebug On Nov 19, 5:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On one page, Firefox throws the "a script is taking too long" message. > > On clicking 'Debug Script', it points to the followin

[jQuery] Re: HELP: Debugging Issue

2007-11-19 Thread James Dempster
sounds horrid but you can put alert or console.log throughout your code see where it gets to last before hanging On Nov 19, 5:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On one page, Firefox throws the "a script is taking too long" message. > > On clicking 'Debug Script', it points to