Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Submit a form without submit button
Message
From
04/01/2002 11:50:16
 
 
To
04/01/2002 09:47:49
General information
Forum:
Visual Basic
Category:
Internet applications
Miscellaneous
Thread ID:
00600548
Message ID:
00600792
Views:
14
I figured it out at last. It was working in IE but not in Netscape. The reason was it was missing document object and it should be written in javascript. It should be like

{
document.ReportsForm.Submit();
}
Any case, thanks for reading with patience.


>Thanks Michael, for the response.
>
>I tried that before and it did not work. What is surprising is that the sub routine is called properly but only this line is not executed. I checked this by adding MsgBox(cReport) before this line and I got the message alert. Any other ideas?
>
>Regards
>
>>Try using parentheses when calling a method. Not sure with VB scripting cause I don't use it on the client side.
>>
>>ie. ReportsForm.submit()
>>
>>
>>>Hi,
>>>
>>>(Sorry if this is a wrong forum to post vbscript)
>>>
>>>Appreciate if someone can tell me how to submit a form which has only one hidden field. for example below code does not run the viewreport.asp
>>>
>>>	Sub ShowReport(cReport)
>>>		ReportsForm.serial.value = cReport
>>>		ReportsForm.submit
>>>	End Sub
>>>-->
>>>
>>>......
>>>I have some code here and at the end the below
>>>
>>>FORM ID="ReportsForm" Action="viewreport.asp" Method="post"
>>>	INPUT Type='hidden' Name='serial' ID='serial'
>>>/FORM
>>>
>>>..... I have removed the tags opening and closing tags from above 3 lines as
>>>otherwise it does not let me post this message to this forum. Thanks
>>>
>>>
Previous
Reply
Map
View

Click here to load this message in the networking platform