Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1392 Can I access data from one page from one domain from another page from another domain?

irt.org | Knowledge Base | JavaScript | Misc | Q1392 [ previous next ]

Q1392 Can I access data from one page from one domain from another page from another domain?

What you want to do can't be done from two widely different domains without signing your JavaScript code (possible with Netscape Navigator, but the user would be asked if it was okay for your code to so something.) If however they where from xxx.domainname.com, and yyy.domainname.com and domainname.com was the same in both then it might be possible in JavaScript 1.1+ enabled browsers by setting the documents domain to domainname.com using:

<script language="JavaScript1.1"><!--
document.domain = 'domainname.com';
//--></script>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.