Results 1 to 2 of 2
Nov 22, 2002, 05:04 #1
- Join Date
- Feb 2002
- Gatwick, UK
- 0 Post(s)
- 0 Thread(s)
Gekco engines and dynamic script src
I've been struggling with the following:
In Internet Explorer you can dynamically change the src attribute of a script tag - and the new src will be read and parsed.
In Gecko browsers - the same is not true:
var oR = document.getElementById('something');
oR.src = 'test.js';
test.js would have a simple alert in it... nothing!
So I tried the following:
var scr = document.createElement('SCRIPT');
I tried setting the src after adding the child, nothing.
Does anyone have any ideas on how to achieve this - short of opening a new page in a new window and document.writing it to that, and letting that refer to it's parent... ( just change top to self.opener) ???
Any ideas ?
Flawless---=| If you're going to buy a pet - get a Shetland Giraffe |=---