| View previous topic :: View next topic |
| Author |
Message |
Poolkop Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 123
|
Using firefox, I am including a javascript file using the DOM, and when it gets included, the page goes blank and it says its trying to read from the server where the js file is located -- anyone know why it would be doing this?
It works fine in IE
Reply with quote
|
| |
|
|
Roombor Enthusiastic Coder
Joined: 02 Jun 2006 Posts: 111
| |
Poolkop Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 123
|
Var js = document.createElement('script'); document.getElementById('test').appendChild(js);
And there is a <div id="test"></div> at the bottom of the page
Reply with quote
|
| |
|
|
Ikopar Enthusiastic Coder
Joined: 26 May 2006 Posts: 168
| |
Roombor Enthusiastic Coder
Joined: 02 Jun 2006 Posts: 111
| |
plantino Enthusiastic Coder
Joined: 13 May 2006 Posts: 96
| |
Roombor Enthusiastic Coder
Joined: 02 Jun 2006 Posts: 111
|
plantino, Are you sure?
I've got it working fine in firefox with DOM methods.
Reply with quote
|
| |
|
|
Poolkop Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 123
| |
Kopilman Enthusiastic Coder
Joined: 25 May 2006 Posts: 162
|
Use ajax to grab the file's source then eval() it
That's what i've done in the past
Reply with quote
|
| |
|
|
Roombor Enthusiastic Coder
Joined: 02 Jun 2006 Posts: 111
| |
| Page 1 of 2 |
Goto page 1, 2 Next |
|