I'm using a frameset with a hidden frame to be able to hold onto my
objects as the content of the window changes. If the bottom frame is
itself a frameset and I load a new page in that bottom frame, I get the
following Javascript console error when referring to "window" and when
trying to create a new Date for example.
Can't find variable: window
undefined
Can't find variable: Date
undefined
Safari 1.3 (v312)
Does not occur when running in Firefox 1.0.4
Anyone have a solution? Is there any other way to hold onto Javascript
objects when loading a new page? (not cookies, I didn't think they can
hold objects, right?)
Thanks,
Philip Weaver
------------------------------------------------------------------------
-----
index.html
------------------------------------------------------------------------
-----
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
function Application_Init() {
this.sValue = "I am a string";
}
function Application_ShowAlert() {
window.alert("Alert called from inside Application object");
}
function Application_GetString() {
return this.sValue;
}
function Application_GetDate() {
return new Date();
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden