[Zope] Calling other frames
Martijn Pieters
mj@digicool.com
Mon, 15 Jan 2001 09:11:11 +0100
On Sun, Jan 14, 2001 at 11:16:44PM -0800, Dirksen wrote:
> First of all, I don't think you can achieve that with javascript. As far as I know,
> neither IE nor Netscape allows javascript to access DOM objects of other frame page for
> security reasons.
This restriction only applies when the two frames come from different
domains. Alll URLs from the same webserver can access DOM trees in other
frames from the same server. This is how Zope updates the left-hand tree
in the management interface when you add a Folder, for instance.
For an example of updating navigation buttons across frames see
http://www.tunix.nl/'. Ignore the Dutch, just choose an option on the main
page, then use the top and left navigation buttons to go around a website.
Then use your browser's back and forward buttons to see the left and top
menus follow the current page. Also, when clicking on a link in the
content pane, the navigation menus will update. All JavaScript source
comments are in english, that's they way I worked.
--
Martijn Pieters
| Software Engineer mailto:mj@digicool.com
| Digital Creations http://www.digicool.com/
| Creators of Zope http://www.zope.org/
---------------------------------------------