jpmad4it
02-07-2008, 04:27 PM
Hi there
I have an asp script that validates information sent from an HTML form. Basically if the info is incorrect or not validated when the user hits the sumbit button, I want to popup a window with an error message. At the moment i'm trying to call a link using a javascript method:
I changed the code from:
If (validationOK=false) Then Response.Redirect("error.htm?" & EmailFrom)
to this:
If (validationOK=false) Then Response.Redirect("<a href='javascript:PHOTO_WINDOW('error.htm?')'>" & EmailFrom)
The javascript for this is in a file called popup.js which I have included at the top of my asp page using:
<!--#include file="popup.js"-->
Can you see what I am trying to do? It would be really nice to popup a little window within the page where the form is included, instead of using a javascript popup window. Can anyone help?
Much appreciated
Johnny
I have an asp script that validates information sent from an HTML form. Basically if the info is incorrect or not validated when the user hits the sumbit button, I want to popup a window with an error message. At the moment i'm trying to call a link using a javascript method:
I changed the code from:
If (validationOK=false) Then Response.Redirect("error.htm?" & EmailFrom)
to this:
If (validationOK=false) Then Response.Redirect("<a href='javascript:PHOTO_WINDOW('error.htm?')'>" & EmailFrom)
The javascript for this is in a file called popup.js which I have included at the top of my asp page using:
<!--#include file="popup.js"-->
Can you see what I am trying to do? It would be really nice to popup a little window within the page where the form is included, instead of using a javascript popup window. Can anyone help?
Much appreciated
Johnny