N
Nick
OK. I've had a trawl through past messages but can see nothing that
helps me, so...here goes...
I am writing a web application which, among other things, pushes a web
page to a user's browser.
In very simple terms:
- I have a script in hidden frame A which sets the document.location
of main frame B.
- Once the document has been loaded in frame B, the script updates the
document.body.innerHTML of that document.
(Pushing the URL alone is not enough, since I want to push values in
form fields etc)
This model works great if I am pushing simple web pages, but as soon
as the page I am pushing has complex javascript in it, bad things
start happening.
One such page has a load of js file includes, which are used for the
drop down menus. Loaded normally in the browser, all the js on this
page works fine. However, if the page has been pushed to the browser
using my system, I get lots of '(varname) is null or not an object'
errors when I try to use the menus.
Now this smacks of a var scope problem, or somesuch. But I have no
real idea.
Can anyone suggest what might be happening here, or has anyone come
across this problem before?
I can post up some code if you want, but I thought I'd just get a
general idea if anyone has come across this problem first.
Cheers in advance for any ideas thrown into the ring!
helps me, so...here goes...
I am writing a web application which, among other things, pushes a web
page to a user's browser.
In very simple terms:
- I have a script in hidden frame A which sets the document.location
of main frame B.
- Once the document has been loaded in frame B, the script updates the
document.body.innerHTML of that document.
(Pushing the URL alone is not enough, since I want to push values in
form fields etc)
This model works great if I am pushing simple web pages, but as soon
as the page I am pushing has complex javascript in it, bad things
start happening.
One such page has a load of js file includes, which are used for the
drop down menus. Loaded normally in the browser, all the js on this
page works fine. However, if the page has been pushed to the browser
using my system, I get lots of '(varname) is null or not an object'
errors when I try to use the menus.
Now this smacks of a var scope problem, or somesuch. But I have no
real idea.
Can anyone suggest what might be happening here, or has anyone come
across this problem before?
I can post up some code if you want, but I thought I'd just get a
general idea if anyone has come across this problem first.
Cheers in advance for any ideas thrown into the ring!