CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Popup After successfull Update(ASP/Templates)

Print topic Send  topic

Author Message
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

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.