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!

iframe form won't submit

Status
Not open for further replies.

ozpeppers

Programmer
Jul 17, 2001
32
BN
Hi guys

I've got an IFrame in an asp page which I try to call a function to submit a form:


code stored in an <IFrame>:

--------------------------------------

<%@ Language=VBScript %>
<HTML>
<HEAD>
</HEAD>
<BODY bgcolor=&quot;PaleGoldenRod&quot;>

<script language=&quot;javascript&quot;>

function uploadSubmit()
{
alert('test');
document.formUpload.submit
}
</script>

<form method=&quot;post&quot; name=&quot;formUpload&quot; id=&quot;formUpload&quot; action=&quot;upLoadEnd.asp&quot; enctype=&quot;multipart/form-data&quot;>

<TABLE valign=&quot;top&quot; align=&quot;left&quot; bgcolor=&quot;PaleGoldenRod&quot;
width=&quot;280px&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>

<tr bgcolor=&quot;PaleGoldenRod&quot; valign=&quot;top&quot;>
<td width=&quot;280px&quot;>
<input type=&quot;file&quot; name=&quot;file&quot; style=&quot;FONT-FAMILY:
Tahoma; FONT-SIZE: 8pt; border: solid 1px
HEIGHT: 18px;width: 217px;&quot;>

<input type=&quot;submit&quot; id=&quot;submit&quot; name=&quot;submit&quot;
value=&quot;submit&quot; style=&quot;FONT-FAMILY: Tahoma; FONT-
SIZE: 8pt; border: solid 1px HEIGHT: 18px;&quot;>

</td>
</tr>
</TABLE>

</form>
</BODY>
</HTML>

-------------------------------

I trying to execute the function by using:

blah blah onclick=&quot;IFrameName.uploadSubmit()

The alert('test') happens but nothing else... if I put () after the function submit...

document.formUpload.submit()

Then I get an error:

&quot;Object doesn't support this property or method&quot;

Anyone with any ideas??

Cheers in advance

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top