Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 02-28-2006, 09:50 AM   #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?
Kulag is offline   Reply With Quote
Old 02-28-2006, 10:12 AM   #2
Member (6 bit)
 
Join Date: Feb 2006
Location: MA
Posts: 43
Quote:
Originally Posted by Kulag
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?
The worker in the quote could be a problem, did you declare an ID value for that yet on somewhere else?

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.
Nav_functions is offline   Reply With Quote
Old 02-28-2006, 11:58 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.
Kulag is offline   Reply With Quote
Old 02-28-2006, 12:27 PM   #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....
Nav_functions is offline   Reply With Quote
Old 03-01-2006, 05:10 AM   #5
Member (7 bit)
 
Join Date: Sep 2004
Posts: 109
Yup, I tried "Test" as well, with no luck.
Kulag is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:05 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2