|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (7 bit)
Join Date: Sep 2004
Posts: 109
|
IFrame Forms array
How can I access the Iframe element's forms array I've tried:
var worker=document.getElementById("worker") worker.forms[0].submit(); Yet this produces an error about 'worker' not having any properties... What could I be doing wrong? |
|
|
|
|
|
#2 | |
|
Member (6 bit)
Join Date: Feb 2006
Location: MA
Posts: 43
|
Quote:
http://developer.apple.com/internet/...nt/iframe.html Using a Form to Pass Data to the Server try to manipulate those code to fit yours Edit: Update Link Last edited by Nav_functions; 02-28-2006 at 10:23 AM. |
|
|
|
|
|
|
#3 |
|
Member (7 bit)
Join Date: Sep 2004
Posts: 109
|
The id for the iframe is unique, in fact, it's the only object on the page with a declared id. BTW, the code I showed there is in the parent, not the page in the iframe.
Very interesting page, however, it doen't address what I am trying to accomplish. |
|
|
|
|
|
#4 |
|
Member (6 bit)
Join Date: Feb 2006
Location: MA
Posts: 43
|
Did you try to rename the var worker into something else? Most common error is same name with different type value....
|
|
|
|
|
|
#5 |
|
Member (7 bit)
Join Date: Sep 2004
Posts: 109
|
Yup, I tried "Test" as well, with no luck.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|