[Javascript] Passing Objects from one window to another in Javascript
Peter Brunone
peter_brunone at yahoo.com
Fri Jul 5 12:48:53 CDT 2002
It's window.open, not open.window.
"Pramod Jain, INDENT" <pramod at indent.org> wrote: I am trying to access an object and I have tried two options, both have not
worked. Would appreciate help
============================================
Option 1. I get "Permission Denied":
In caller window:
-------------
function Object1()
{
this.phr = "abc";
this.openWind = open.Wind;
function openWind() {
newwin = open.window("ab.htm","");
}
}
obj1 = new Object1();
[input]
-------------
In the called window:
function init(){
{
alert(opener.obj1.phr);
}
===========================================
Option 2: I get "object does not support this property or method
In Caller window:
function Object1()
{
this.phr = "abc";
this.openWind = open.Wind;
function openWind() {
window.showModalDialog("ab.htm", this);
}
}
obj1 = new Object1();
[input]
-----------------
In the called window:
function init(){
{
alert(dialogArguments.obj1.phr);
}
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
---------------------------------
Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free & unlimited access
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20020705/94c60902/attachment.htm>
More information about the Javascript
mailing list