dcsimg
Getting 'Error: document.mainForm is not an object'
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, March 7, 2003 07:13 AM

I'm working with IBM's net.data and I'm using some javascript to automatically kick off a 2nd macro call to a 2nd URL by using ...


body onLoad="document.mainForm.submit()" bgcolor="fff25f" text=black


and


form method="POST" NAME=mainForm ACTION="http://my 2nd url macro goes here"


This works great, but when I try to load a third page
from the 2nd page using the same code, I get


'Error: document.mainForm is not an object'


Any help will be greatly appreciated. Thanks.

Re: Getting 'Error: document.mainForm is not an object'

Posted By:   Christopher_Koenigsberg  
Posted On:   Friday, March 7, 2003 07:49 AM

Try "document.forms[0].submit()".

About | Sitemap | Contact