document.domain issues and cross server scripting

W

writeson

Hi all,

I'm working on a project at the office that pulls together a bunch of
our websites into a portal thing and adds a better search engine. We're
also trying to accomadate newer browsers (Netscape 7.2, Firefox,
Safari) and are having some problems. The websites run on different
servers, all of which we control, so we are setting the document.domain
= "ourdomain.com"; in some javascript on ever page. However, we're
having problems. We use popup windows for some things, and sometimes
these popups want to 'populate' the parent frame window with a new page
as a result of a user selection on the popup. This works most of the
time, but not always. For instance, in Netscape 7.2 it just seems to
fail with an "access denied..." error in javascript. In Firefox and
Safari it opens a new window and populates that instead of populating
the original parent window. Can anyone point me at some definitive
information about the document.domain property and how to use it
effectively? And if anyone knows how to make Netscape and Firefox work
in the above situation, that would be great to!

Thanks in advance,
Doug
 
D

Dietmar Meier

Can anyone point me
at some definitive information about the document.domain property and
how to use it effectively?

Maybe you are only missing this information:

,-[ http://doc.rz.ifi.lmu.de/web/js/ClientReferenceJS13/document.htm ]-
| You can change domain only in a restricted way. Initially, domain
| contains the hostname of the Web server from which the document was
| loaded. You can set domain only to a domain suffix of itself. For
| example, a script from search.royalairways.com can't set its domain
| property to "search.royalairways". And a script from
| IWantYourMoney.com cannot set its domain to "royalairways.com".

ciao, dhgm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top