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="PaleGoldenRod">
<script language="javascript">
function uploadSubmit()
{
alert('test');
document.formUpload.submit
}
</script>
<form method="post" name="formUpload" id="formUpload" action="upLoadEnd.asp" enctype="multipart/form-data">
<TABLE valign="top" align="left" bgcolor="PaleGoldenRod"
width="280px" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="PaleGoldenRod" valign="top">
<td width="280px">
<input type="file" name="file" style="FONT-FAMILY:
Tahoma; FONT-SIZE: 8pt; border: solid 1px
HEIGHT: 18px;width: 217px;">
<input type="submit" id="submit" name="submit"
value="submit" style="FONT-FAMILY: Tahoma; FONT-
SIZE: 8pt; border: solid 1px HEIGHT: 18px;">
</td>
</tr>
</TABLE>
</form>
</BODY>
</HTML>
-------------------------------
I trying to execute the function by using:
blah blah onclick="IFrameName.uploadSubmit()
The alert('test') happens but nothing else... if I put () after the function submit...
document.formUpload.submit()
Then I get an error:
"Object doesn't support this property or method"
Anyone with any ideas??
Cheers in advance
Mark
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="PaleGoldenRod">
<script language="javascript">
function uploadSubmit()
{
alert('test');
document.formUpload.submit
}
</script>
<form method="post" name="formUpload" id="formUpload" action="upLoadEnd.asp" enctype="multipart/form-data">
<TABLE valign="top" align="left" bgcolor="PaleGoldenRod"
width="280px" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="PaleGoldenRod" valign="top">
<td width="280px">
<input type="file" name="file" style="FONT-FAMILY:
Tahoma; FONT-SIZE: 8pt; border: solid 1px
HEIGHT: 18px;width: 217px;">
<input type="submit" id="submit" name="submit"
value="submit" style="FONT-FAMILY: Tahoma; FONT-
SIZE: 8pt; border: solid 1px HEIGHT: 18px;">
</td>
</tr>
</TABLE>
</form>
</BODY>
</HTML>
-------------------------------
I trying to execute the function by using:
blah blah onclick="IFrameName.uploadSubmit()
The alert('test') happens but nothing else... if I put () after the function submit...
document.formUpload.submit()
Then I get an error:
"Object doesn't support this property or method"
Anyone with any ideas??
Cheers in advance
Mark