New to Javascript.
I have the following VB Script that I think I need to convert to Javascript. The VB Script was working prior to IE7 and all of a sudden no longer works. I read somewhere that some VB Script does not work in IE7.
Here is the VB Script:
This is executed from a button click:
Below is the Javascript I have. The loading of google.com is a test.
Below is the button:
The question I think I have is how do I setup the Javascript to pass parameters to the next page (hmstvalidate.asp)?
Any assistance would be appreciated.
Thanks
I have the following VB Script that I think I need to convert to Javascript. The VB Script was working prior to IE7 and all of a sudden no longer works. I read somewhere that some VB Script does not work in IE7.
Here is the VB Script:
Code:
<script language="vbscript" type="text/vbscript">
<!--
Sub OnAddHmst
Dim strResponse strApp strURL strPID ValApp
strResponse=msgbox("You are about to add a new application with the same Parcel ID that already exist on the file. If you click 'YES' the existing application will be marked as inactive and you will be directed to the AssessPro Validation form. Do you want to continue", 36, "Create New Record")
If strResponse = 6 Then
strApp = document.HMSTEDITADDRESS.ApplicationNumber.value
strPID = document.HMSTEDITADDRESS.pid.value
window.navigate("hmstvalidate.asp?AppNumber=" & strApp & "" & "&parent=edithmst" &"" & "&PID=" & strPID & "")
End If
end Sub
-->
</script>
Code:
Response.Write "<input CLASS=button type=button name=btnEdit value=""Add New Application "" title=""Add New Application""onclick=OnAddHmst>"
Below is the Javascript I have. The loading of google.com is a test.
Code:
<script type="text/javascript">
<!--
function OnAddHmst() {
var answer = confirm("You are about to add a new application with the same Parcel ID that already exist on the file. If you click 'OK' the existing application will be marked as inactive and you will be directed to the AssessPro Validation form. Do you want to continue?")
if (answer) {
window.location = "[URL unfurl="true"]http://google.com/";[/URL]
}
}
//-->
</script>
Code:
Response.Write "<input CLASS=button type=button name=btnEdit value=""Add New Application "" title=""Add New Application"" onclick=OnAddHmst()>"
The question I think I have is how do I setup the Javascript to pass parameters to the next page (hmstvalidate.asp)?
Any assistance would be appreciated.
Thanks