Re: [jQuery] Forms Plugin: target scripts evaluated TWICE

2007-02-17 Thread Aaron Heimlich
I did some tests[1] and noticed that $().load now suffers from the same double script eval that the OP was complaining about. It seems that Firefox eval's scripts as soon as they are appended to the DOM tree (and it's the only browser, as far as I can tell, that does this) so doing something like

Re: [jQuery] Forms Plugin: target scripts evaluated TWICE

2007-02-17 Thread Joel Birch
On 17/02/2007, at 6:53 PM, Aaron Heimlich wrote: It should be noted that I have *never* experienced this double script eval in any other Windows browser (I don't own a Mac, so I can't test there). I ran your test pages with Mac FF2 and four alerts are generated by the unpatched test

Re: [jQuery] Forms Plugin: target scripts evaluated TWICE

2007-02-17 Thread Aaron Heimlich
On 2/17/07, Joel Birch [EMAIL PROTECTED] wrote: I ran your test pages with Mac FF2 and four alerts are generated by the unpatched test (just like Windows FF) and two alerts in the patched version. Safari v2 generates two alerts using either version of the test page, like all other browsers. So

Re: [jQuery] Forms Plugin: target scripts evaluated TWICE

2007-02-16 Thread Mike Alsup
I've noticed that scripts are evaluated twice if they're included in the responseText loaded via the Form's plugin target parameter -- using jQuery 1.1.1 Thanks, Brice. I'll have a look. ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] Forms Plugin: target scripts evaluated TWICE

2007-02-16 Thread Mike Alsup
I've got a fix for this. I'll upload it tonight. Mike On 2/16/07, Mike Alsup [EMAIL PROTECTED] wrote: I've noticed that scripts are evaluated twice if they're included in the responseText loaded via the Form's plugin target parameter -- using jQuery 1.1.1 Thanks, Brice. I'll have a

Re: [jQuery] Forms Plugin: target scripts evaluated TWICE

2007-02-16 Thread Benjamin Sterling
Thanks Mike. On 2/16/07, Mike Alsup [EMAIL PROTECTED] wrote: I've got a fix for this. I'll upload it tonight. Mike On 2/16/07, Mike Alsup [EMAIL PROTECTED] wrote: I've noticed that scripts are evaluated twice if they're included in the responseText loaded via the Form's plugin target

Re: [jQuery] Forms Plugin: target scripts evaluated TWICE

2007-02-16 Thread Mike Alsup
This is fixed in svn; unit tests updated too. Good catch, guys! Mike On 2/16/07, Benjamin Sterling [EMAIL PROTECTED] wrote: Thanks Mike. On 2/16/07, Mike Alsup [EMAIL PROTECTED] wrote: I've got a fix for this. I'll upload it tonight. Mike

Re: [jQuery] Forms Plugin: target scripts evaluated TWICE

2007-02-16 Thread Aaron Heimlich
On 2/16/07, Mike Alsup [EMAIL PROTECTED] wrote: This is fixed in svn; unit tests updated too. Good catch, guys! Interesting, your fix (replacing jQuery(options.target).html(data) with jQuery(options.target).attr(innerHTML, data) )[1] was reported as bug #914[2] about 2 weeks ago (the issue

Re: [jQuery] Forms Plugin: target scripts evaluated TWICE

2007-02-16 Thread Mike Alsup
Interesting, your fix (replacing jQuery(options.target).html(data) with jQuery(options.target).attr(innerHTML, data) )[1] was reported as bug #914[2] about 2 weeks ago (the issue being that $().attr(innerHTML, data) was failing in IE6) and the solution Brandon came up[3] with was to replace

[jQuery] Forms Plugin: target scripts evaluated TWICE

2007-02-15 Thread Brice Burgess
I've noticed that scripts are evaluated twice if they're included in the responseText loaded via the Form's plugin target parameter -- using jQuery 1.1.1 As an example: [ FORMS PAGE ] === form method=post action=form.html input type=text input type=submit /form div

Re: [jQuery] Forms Plugin: target scripts evaluated TWICE

2007-02-15 Thread Benjamin Sterling
Brice, that was happening to me earlier today in ie6,ie7 and ff2, so I switch to ajaxSubmit instead of ajaxForm. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com ___ jQuery mailing list discuss@jquery.com