[thelist] sending pop-up to client within asp
VOLKAN ÖZÇELİK
volkan.ozcelik at gmail.com
Mon Mar 7 06:49:02 CST 2005
can the following help?
<%
Dim MsgStr = ""
Dim blnRedirect = vpwdexpire < 15 AND vpwdexpire <> 0
if blnRedirect then
MsgStr = "Your password will expire in " & vpwdexpire & " days,
please change it."
%>
<script type="text/javascript">
var MsgStr = "<%=MsgStr%>";
if(MsgStr!="") {
if(confirm(MsgStr)) {
/*if user confirms, redirect to profile modification page.*/
self.location = "profile.asp";
}
}
</script>
<%
if blnRedirect then response.end
%>
Cheers,
Volkan.
On Mon, 07 Mar 2005 07:31:12 -0500, Brian Delaney
<brian.delaney at mccmh.net> wrote:
> I have written a password checking app when my users login.
>
> If their password expires in 15 or less days I want to send a javascript
> alert or confirm that informs them of when their password
> expires. After they click ok, it re-directs them to the desired app.
>
> The problem is that this codes works, but leaves the user at a blank page.
>
> if vpwdexpire < 15 AND vpwdexpire <> 0 then
> MsgStr = "Your password will expire in " & vpwdexpire & " days,
> please change it."
> Response.Write("<script language='javascript'>confirm('" & MsgStr &
> "')</script>")
> response.end
> end if
>
> The next line of code re-directs them to the application.
>
> So how do I send the user a pop-up that informs them of when their
> password expires and after they click ok, the program directs them to the
> app?
> If the password is = 0 it send an alert and send them to the login page.
>
> Thanks
>
> *
> *
> *
> This message, including any attachments, is intended solely for the use of the named recipient(s) and may contain confidential and/or priveleged information. Any unauthorized review, use, disclosure or distribution of this communication(s) is expressly prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy any and all copies of the original message.
> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>
More information about the thelist
mailing list