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?
> 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