pass an object to a new window

M

mtz

On IE there is a way to open a window from one page and pass an object
to it, when you use showModalDialog. Is there a way to do the same on
NS/Mozilla/FireFox?

On IE:
window.showModalDialog(URL, FreeArgument, Ornaments);

FreeArgument. You can use this optional parameter to pass a value of
any type to the open dialog box. You can pass a scalar, a string, an
array of values, an object, etc. You access this value in the new
window by referring to the dialogArguments property of the new window
object.


Thanks
 
K

kaeli

On IE there is a way to open a window from one page and pass an object
to it, when you use showModalDialog. Is there a way to do the same on
NS/Mozilla/FireFox?

Not that I know of, but I think you can get the object by using
opener.objectName, assuming it has global scope. I know you can call
functions that way (opener.functionName()), so you could always have a
getter/setter type setup similar to java beans.

--
--
~kaeli~
Is it true that cannibals don't eat clowns because they
taste funny?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top