Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Browsers / Internet Explorer / June 2004



Tip: Looking for answers? Try searching our database.

accessing data in other window

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tumurbaatar S. - 17 Jun 2004 01:55 GMT
I need to share some data across web sites. If web hosts belong
to same domain, I can use cookie (e.g. ".mydomain.com") to share
data. But I need to share between different domains. Is there anyway?
Also, is there a way to access a document (e.g. form data, javascript var-s
and functions) in one window from another window?
gusz1@freemail.hu - 24 Jun 2004 13:49 GMT
> I need to share some data across web sites. If web hosts belong
> to same domain, I can use cookie (e.g. ".mydomain.com") to share
> data. But I need to share between different domains. Is there anyway?
> Also, is there a way to access a document (e.g. form data, javascript var-s
> and functions) in one window from another window?

Yes, if you have the window variable of the other window, you can
reference everything through it:

var wnd = getOtherWindow();     // somehow acquire window object
alert(wnd.document.scrollHeight);
wnd.otherFunction();    // calls the function defined in the script in the
other window
about variables I'm not sure, but I suspect that works the same way.
etc.

Gus
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.