I have a small page with ASP. In one part of the program, when the user clicks on a button, I use the following code to call a VBScript Subroutine with the name of SubmitForm:
The code that creates the Subroutine SubmitForm is found at the HEAD section of the page. Here's the code that generates SubmitForm Subroutine:
Since I wish to make this page compatible with FireFox, I need to translate the above line from VBScript to JavaScript. As you know, FireFox does not support VBScript by itself. So, I really need to fix this problem.
Thank you for your help.
Code:
<input type="button" language="vbscript" onclick="Submitform(<%=I%>)">
The code that creates the Subroutine SubmitForm is found at the HEAD section of the page. Here's the code that generates SubmitForm Subroutine:
Code:
Response.Write "<script language='vbscript'>" & vbCrLf _ & "<!--" & vbCrLf _ & "Sub Submitform(Number)" & vbCrLf _ & "frm.action = " & """AddItem.asp?idnum=" & IdNumber & "&pgnum=" & """" & " & Number" & vbCrLf _ & "frm.submit" & vbCrLf _ & "End Sub" & vbCrLf _ & "-->" & vbCrLf _ & "</script>"
Since I wish to make this page compatible with FireFox, I need to translate the above line from VBScript to JavaScript. As you know, FireFox does not support VBScript by itself. So, I really need to fix this problem.
Thank you for your help.
Comment