|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Need Help Debugging Script/Error in Script - Submit form action
Hi all,
What is wrong with this code? I try to submit this form from a javascript function but nothing happened. Thanks function checkUpload() { ..... document.forms["frmAction"].submit() <-----????? ...... return true; } <form id="frmAction" method="post" target="iframeWindow" enctype="multipart/form-data" action="upload.cfm"> <input id="txtUploadFile" style="WIDTH: 100%" type="file" size="40" name="NewFile" /> ..... <input id="btnUpload" type="submit" value="Send it to the Server" onClick="return CheckUpload()" /> |
|
#2
|
|||
|
|||
|
Try This.
Code:
document.forms["frmAction"].submit(); |
|
#3
|
|||
|
|||
|
my bad, this is my typo..I do have ";" in my code....same as "Check..."
Anything else you would see? Thanks |
|
#4
|
||||
|
||||
|
Try adding "all".
document.all.forms["frmAction"].submit();
__________________
Scripting problems? Windows questions? Ask the Windows Guru! Stay up to date with all of my latest content. Follow me on Twitter! Help us help you! Post your exact error message with these easy tips! |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Need Help Debugging Script/Error in Script - Submit form action |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|