[thelist] Javascript between sites

Peter-Paul Koch gassinaumasis at hotmail.com
Mon Sep 17 06:39:08 CDT 2001


>I've been working on a problem in Javascript. I am trying to build a little
>frameset that allows me to submit a form in one frame from a button in the
>other frame. This shouldn't be too hard, using something like:
>
><a
>href="javascript:window.parent.bottom.document.forms[2].submit()">Submit</a>
>
>Where bottom is the name of the other frame and the form is the 3rd form on
>the page (it is unnamed).
>
>I'm wondering if the problem is because the lower frame is on another 
>domain
>to the top frame? Is that a security issue that the browser has closed off?

Yep. If a page comes from another server you may not access its JavaScript 
methods and properties. This is for security reasons.

ppk

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp





More information about the thelist mailing list