Hi Angelo,

I had this exact problem - jQuery and Prototype don't work out in IE8 (I
vaguely remember reading something about IE8 trying to be smart and load/run
scripts in parallel, which cause problems). Sometimes prototype code would
run, but $ would be referencing jQuery even though I had called noConflict
on jQuery.

Here's my solution, which I'm using in my app right now:
 - Download the un-minified source of jQuery, whichever version you're using
 - Modify it so that it never assigns the $ variable in the first place (in
version 1.4.3 it's line 901: "return (window.jQuery = window.$ = jQuery);
just remove the " = window.$" part.
 - Minify it (I used yahoo's javascript compressor -
http://developer.yahoo.com/yui/compressor/)
And then everything works.

You can grab it from my site if you like (
http://www.deliverthedeals.com/js/jquery-1.4.3.min.js) to verify that it
works. My version has an extra line at the end though, which assigns jQuery
to $j.

Donny

On Tue, Jan 18, 2011 at 6:09 AM, Angelo C. <angelochen...@gmail.com> wrote:

>
> Thanks for the code. It seems to me, T5.2.4 app with jQuery will fail in IE
> 8, from what I found out in Google, running jQuery's noConflict() ahead of
> Prototype might solve the problem, but with this issue:
> https://issues.apache.org/jira/browse/TAP5-1416 , jQuery is not combined
> into the single js file, there is no way to call nonConflict() ahead of
> Prototype, that seems the problem.
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/t5-5-2-4-and-IE8-tp3345797p3346002.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to