Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form.Submit( ) Question

Status
Not open for further replies.

sjuarez1979

Programmer
Jun 26, 2001
35
US
I wrote a little function that takes information and populates a hidden field before form submission. For some reason it gives me this error:

Object doesn't support this property or method

Here is the Code:

function SubmitIt()
{
UpdateNonPic.f_P1CenterText.value = idContent.document.body.innerHTML;
//this next line is the problem...
UpdateNonPic.Submit();
}

Can Anyone Help?
sjuarez1979
 
how about this...

document.UpdateNonPic.submit();


be sure you have named your form correctly

<form name=UpdateNonPic>
 
TWillard, thanks so much for the help!! Unfortunately, I checked the Form Name and it is exactly the same. I tried using document.UpdateNonPic.submit(); and it did not work!

:(

I am not exactly quite sure why this error would occur. Thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top