Ken Hardwick
|
Posted: 02/06/2002, 5:51 AM |
|
I am working on allowing a user to change their password and would like to have a popup window appear on success of update or a different message if password was invalid.
Any suggestions ?
Thanks,
Ken Hardwick
|
|
|
Nicole
|
Posted: 02/06/2002, 7:07 AM |
|
Ken,
in case the update table operation was invalid the sFormNameErr ver is not empty so you may alert it using JScript. E.g. in form/Open event put:
if sform_nameErr <> "" then
response.write "<script language = 'javascript'> alert('" & sform_nameErr & "') </script>"
end if
If operation was successfull you may pas any temporary parameter to the next page, something like &suc=1
In Open event of result page put the similar code:
if getParam("suc") = 1 then
response.write "<script language = 'javascript'> alert('The record was successfully updated') </script>"
end if
|
|
|
Ken Hardwick
|
Posted: 02/06/2002, 9:05 AM |
|
Nicole,
Thanks for your reply...using your suggestion..here is what I did..and works !
In the "After Update" event of the password form, I added :
Session("PasswordUpdated") = "OK"
Then in the Page "Open" event, I added :
if Session("PasswordUpdated") <> "" then
Session("PasswordUpdated") = empty
response.write "<script language = 'javascript'> alert('Password change was successfull ! Click on OK to continue.') </script>"
end if
Thanks again,
Ken Hardwick
Norman,Ok
|
|
|
|