1) pino71Group: Members Posts: 2Joined: 17 Sep 2007Location: IP: 160.97.--.--
Posted:
Hi, i've a big problem: i need to load some js (like thickbox.js or jquery.js) in the window loaded by the HTMLHttpRequest method. But when i try to click the link on the loaded window this script non working (with thickbox open a new window and not a overlay window).
Please help me.
Thanks
2) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 203.109.--.--
Posted:
Embed the source material in the loaded document if it is plain HTML, and the script in the parent document. Loading scripts is very hard to do right, so they should really be in the main document at load time!
Good luck - Angus.
3) pino71Group: Members Posts: 2Joined: 17 Sep 2007Location: IP: 160.97.--.--
Posted:
Yes, the script are linked in the parent document. When i load the document into div i see the right css for example (that are linked in the main document too) but the function not work (i not see any js error in the IE). I use for example the tablesort.js and the paginator.js to sort and paginate a table loaded into div.
4) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 203.109.--.--
Posted:
Unless the script has been specifically designed to handle insertion/removal of content on the fly, it will probably fail.
You may need to call any "activation" methods of the script each time you load content, this will again depend on how the script is written. I'd contact the author of the original script perhaps to see what they recommend as this is not really a bug with HTMLHttpRequest at all.