[thelist] JAVASCRIPT and IFRAMEs

Phil Essing essing at vdl2.com
Mon Jul 29 15:10:05 CDT 2002


Please ignore my last message, it included an error.

I have a real doozy of a problem, that I'm hoping one of you Javascript
gurus, out there, will be able to help me with.  Ok, on my main HTML
page I have an IFRAME that loads another HTML document.  Within this
second document (contained in the IFRAME) I have an SSI which contains a
form.  In this form there is a link which opens a popup calendar, with
each date hyperlinked.  When the user clicks a date, the value needs to
be passed to the appropriate form fields.

The problem:

Trying to pass the values back to the form will not work using <a
href="#"
onClick="self.opener.document.formname.fieldname.value">day</a>.  The
code works outside of the IFRAME, because self.opener is apparent.
Within the IFRAME, however, I get the following error:
"self.opener.document.formname.fieldname.value" is not an object.

So, my question is: how do I pass this value back to a form contained
within an IFRAME document?

-phil

------------------------------------------------------------------------
-----------------
Phil Essing
User Interface Specialist
phil at sector404.org

VDL2 inc.
700, rue Wellington  .  Montreal, QC  .  H3C 1T4
tel.: 514.599.5712  .  fax: 514.599.5724
------------------------------------------------------------------------
-----------------





More information about the thelist mailing list