By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,341 Members | 1,619 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,341 IT Pros & Developers. It's quick & easy.

pass an object to a new window

P: n/a
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
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <75**************************@posting.google.com >,
mi**********@srb-intl.com enlightened us with...
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

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.