Accessing documents in multiple frames

Fernando Gómez fgomez at criba.edu.ar
Thu Aug 22 14:26:08 EDT 2002


Hello,

I'm developing an application (a web based cataloguing interface), in which
the workspace is organized using multiple frames. My development platform is
IE 5.5 on Win ME.

The problematic situation today is this:

top frame (name="topFrame"):
    several control buttons (HTML file hosted on my server, localhost)

bottom frame (name="bottomFrame"):
    a page with the results of a search in a remote catalog

The goal is to parse the data in the bottom frame, using JavaScript. But
first I must have access to the corresponding document object, right? When I
click a button on the top frame, this simple statement is executed:

    alert(top.bottomFrame.document);

And the error message I receive is:

    Access is denied

I've observed that when the bottom frame contains a web page from my server
(localhost in this case), there's no error message. So it seems as if the
problem lies in accessing a remote document. But is it so? Once the
documents are in the browser, isn't one supposed to have access to the whole
document trees?

Thanks for your help in advance.

Fernando Gómez

----------------------------------------
Biblioteca Dr. Antonio Monteiro
Instituto de Matemática de Bahía Blanca
Universidad Nacional del Sur / CONICET
Bahía Blanca - Argentina
----------------------------------------







More information about the Web4lib mailing list