Script tags aren't the only problem with html-who.wcx. It's full of document.writeln() calls. If you load this file with XMLHttpRequest after the page is loaded, it's far too late to call document.write[ln](). The document has already been closed. If it works at all, the first document.writeln should replace your page, not insert into it.
I wonder why it works at all with prototype.js (not protocol.js!)? Maybe they aren't using innerHTML as jQuery does? And why does it work with the raw Ajax version? Oh! It must be loading synchronously, directly from a script tag in the <body> of your document. That might explain it. If that's why it is working, there's a chance that it would work with jQuery too, if you do the $.load call directly in an inline script - not in a $(document).ready() or $() callback - and specify synchronous loading. I don't know why your scripts aren't being executed, but first I'd address the loading issue. Then a good way to troubleshoot it would be to add a debugger; statement at the first line of the evalScripts() function in jquery.js and trace through the function in your favorite debugger (e.g. Firebug). -Mike > From: Hector > Well, I began to explore other more sophisticated WCX request > we have that does more and some even have JS in it. > > For example, we have one WCX, "/code/html-who.wcx" that > displays the active users online and with JS, SPLASH, ACTIVEX > or JAVA it uses audio notifications like "You have new Mail". > > Here is what I found using the 3 methods when requesting this > HTML-WHO.WCX url: > > Raw Ajax --> Displays not JS elements were ignored. of course. > Protocol.js --> Displays it properly,no delays, but no sound. > jQuery: --> No Display, in fact, the browser seems slower. > > I think with protocol.js, it had a problem resolved the base > path for the embedded JS. > > With jQuery, I had to "stop" the loading because it just seem > lost, the FF browser was slowed. It seem stuck in some loop. > > Now, I am not 100% sure why this happen with jQuery, but I > guess I need to ask the following: > > What are the limitations of use jQuery AJAX calls to > URLs which has JS as well? > > In this case, the WCX loads "soundmanager.js" which is a MP3 > player library.