Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Communications among windows

Status
Not open for further replies.

dalhousi

Programmer
Mar 26, 2007
21
CA
Hi all,

I have a little problem in Javascript. What I want to do is to communicate between two windows from different domains. I just need one function to be accessible from the other windows (that belong to different domains).

Is there any way around, like giving the function a "public" property or something like this so it can be called from different domains?

Thanks in advance,
Cheers,
 
Thanks for the reply Dan.

Actually the two domains are totally different. Do you know a good tutorial that explains how to use a proxy in Javascript?

Thanks,
Cheers,
 
You cannot use client-side JavaScript to write a proxy because of the security restrictions you've already come across. You would need to use server-side scripting to write one.

Whether you use JSP, PHP, or whatever else depends on what your host supports. You could even write it in server-side JavaScript although I'm sure there are better languages (then again, AOL write most of theirs in TCL, so JS isn't looking so bad after all ;-))

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top