Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Redirect after close Pop Up.

LEGEND ,
Jan 06, 2007 Jan 06, 2007
Hi, I am using DW8 and in my application after close a pop up windows the
user must be redirect on A Login Page (login.asp) how may I solve this issue
follow the snipped code used in pop up windows:

Thanks in advance:

Massimo

<%
Titolo = Request.ServerVariables("REMOTE_HOST")
%>
<html>
<head>
<title><%=Titolo%></title>

<style type="text/css"><!--
.bianco10sx { font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px; text-decoration: none; text-align: left; color: #FFFFFF}
.rex { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;
text-decoration: none; color: #B92203; text-align: justify}
.lau { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;
text-decoration: none; color: #000000; text-align: justify}
--></style>

</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<%
Msg = request("Msg")
NonInviati = request("NonInviati")
If NonInviati <> "" Then
NonInviati = Split(NonInviati,"§")
TotNum = Ubound(NonInviati)
Else
TotNum = 0
End If

Select Case Msg
Case "NoUrlAut"
Messaggio = "ATTENZIONE!!!<br>Invio Non Autorizzato..."
Case "NoUrl"
Messaggio = "ATTENZIONE!!!<br>Il vostro pannello di controllo non ha
autorizzato nessun URL all'invio."
Case "NoCrediti"
Messaggio = "ATTENZIONE!!!<br>I crediti attuali non sono sufficienti per
l'invio"
Case "InvioCorretto"
Messaggio = "L'INVIO E'STATO ESEGUITO CORRETTAMENTE"
Case "InvioIncompleto"
Messaggio = "ATTENZIONE!!!<br>L'invio dei messaggi non è andato
completamente a buon fine."
Case "NoInvio"
Messaggio = "ATTENZIONE!!!<br>L'invio non è andato a buon fine.<br>Nessun è
stato fatto alcun addebito."
Case "NumLong"
Messaggio = "ATTENZIONE!!!<br>Il numero del destinatario è troppo lungo."
Case "NoServerInvio"
Messaggio = "ATTENZIONE!!!<br>L'invio degli SMS non è possibile.<br>Il
Server dell'Operatore non è Attivo.<br>Si prega di riprovare più tardi."
End Select
%>
<br><br>
<table border="0" cellPadding="15" cellSpacing="0" align="center"
width="315" height="180" class="lau">
<tr>
<td align="center"><b><font class="lau"><%=Messaggio%></font> </b></td>
</tr>
<%
If TotNum <> 0 Then
%>
<tr>
<td align="center"><b>Destinatari a cui non è stato possibile effettuare
l'invio: <font class="rex"><%=TotNum%></font></b><br>
<textarea cols="6" rows="3" style="WIDTH: 190px; HEIGHT:
23px;scrollbar-3dlight-color: FFFFFF; scrollbar-arrow-color: 808080;
scrollbar-base-color: FFFFFF; scrollbar-darkshadow-color: FFFFFF;
scrollbar-face-color: FFFFFF; scrollbar-highlight-color: FFFFFF;
scrollbar-shadow-color: FFFFFF; scrollbar-track-color: FFFFFF" type="text"
readonly><%For i = 1 to TotNum
Response.Write "N°:+" & NonInviati(i)&vbcrlf
Next%>
</textarea>
</td>
</tr>
<%
End If
%>
<tr>
<td align="center"><a href="javascript:window.close();"><img
src="chiudi.gif" border="0"></a></td>
</tr>
</table>

</body>
</html>


TOPICS
Server side applications
435
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 06, 2007 Jan 06, 2007
Change your window.close code to this:

<a href="javascript:void"
onclick="window.close();opener.location.href='login.asp'">Login Now</a>

That will open login.asp in the main window when the popup closes.


--
Nancy Gill
Adobe Community Expert
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner''s
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development

"Massimo" <info@tessyacconciature.it> wrote in message
news:enodff$4hl$1@forums.macromedia.com...
> Hi, I am using DW8 and in my application after close a pop up windows the
> user must be redirect on A Login Page (login.asp) how may I solve this
> issue
> follow the snipped code used in pop up windows:
>
> Thanks in advance:
>
> Massimo
>
> <%
> Titolo = Request.ServerVariables("REMOTE_HOST")
> %>
> <html>
> <head>
> <title><%=Titolo%></title>
>
> <style type="text/css"><!--
> .bianco10sx { font-family: Verdana, Arial, Helvetica, sans-serif;
> font-size: 10px; text-decoration: none; text-align: left; color: #FFFFFF}
> .rex { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
> 11px;
> text-decoration: none; color: #B92203; text-align: justify}
> .lau { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
> 11px;
> text-decoration: none; color: #000000; text-align: justify}
> --></style>
>
> </head>
> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
>
> <%
> Msg = request("Msg")
> NonInviati = request("NonInviati")
> If NonInviati <> "" Then
> NonInviati = Split(NonInviati,"§")
> TotNum = Ubound(NonInviati)
> Else
> TotNum = 0
> End If
>
> Select Case Msg
> Case "NoUrlAut"
> Messaggio = "ATTENZIONE!!!<br>Invio Non Autorizzato..."
> Case "NoUrl"
> Messaggio = "ATTENZIONE!!!<br>Il vostro pannello di controllo non ha
> autorizzato nessun URL all'invio."
> Case "NoCrediti"
> Messaggio = "ATTENZIONE!!!<br>I crediti attuali non sono sufficienti per
> l'invio"
> Case "InvioCorretto"
> Messaggio = "L'INVIO E'STATO ESEGUITO CORRETTAMENTE"
> Case "InvioIncompleto"
> Messaggio = "ATTENZIONE!!!<br>L'invio dei messaggi non è andato
> completamente a buon fine."
> Case "NoInvio"
> Messaggio = "ATTENZIONE!!!<br>L'invio non è andato a buon fine.<br>Nessun
> è
> stato fatto alcun addebito."
> Case "NumLong"
> Messaggio = "ATTENZIONE!!!<br>Il numero del destinatario è troppo lungo."
> Case "NoServerInvio"
> Messaggio = "ATTENZIONE!!!<br>L'invio degli SMS non è possibile.<br>Il
> Server dell'Operatore non è Attivo.<br>Si prega di riprovare più tardi."
> End Select
> %>
> <br><br>
> <table border="0" cellPadding="15" cellSpacing="0" align="center"
> width="315" height="180" class="lau">
> <tr>
> <td align="center"><b><font class="lau"><%=Messaggio%></font> </b></td>
> </tr>
> <%
> If TotNum <> 0 Then
> %>
> <tr>
> <td align="center"><b>Destinatari a cui non è stato possibile effettuare
> l'invio: <font class="rex"><%=TotNum%></font></b><br>
> <textarea cols="6" rows="3" style="WIDTH: 190px; HEIGHT:
> 23px;scrollbar-3dlight-color: FFFFFF; scrollbar-arrow-color: 808080;
> scrollbar-base-color: FFFFFF; scrollbar-darkshadow-color: FFFFFF;
> scrollbar-face-color: FFFFFF; scrollbar-highlight-color: FFFFFF;
> scrollbar-shadow-color: FFFFFF; scrollbar-track-color: FFFFFF" type="text"
> readonly><%For i = 1 to TotNum
> Response.Write "N°:+" & NonInviati(i)&vbcrlf
> Next%>
> </textarea>
> </td>
> </tr>
> <%
> End If
> %>
> <tr>
> <td align="center"><a href="javascript:window.close();"><img
> src="chiudi.gif" border="0"></a></td>
> </tr>
> </table>
>
> </body>
> </html>
>
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 06, 2007 Jan 06, 2007
Thank you for quick response, if I need to close and redirect without
click on Login Now, how can I change the code??
thank you very much

Massimo

"Massimo" <info@tessyacconciature.it> ha scritto nel messaggio
news:enodff$4hl$1@forums.macromedia.com...
> Hi, I am using DW8 and in my application after close a pop up windows the
> user must be redirect on A Login Page (login.asp) how may I solve this
issue
> follow the snipped code used in pop up windows:
>
> Thanks in advance:
>
> Massimo
>
> <%
> Titolo = Request.ServerVariables("REMOTE_HOST")
> %>
> <html>
> <head>
> <title><%=Titolo%></title>
>
> <style type="text/css"><!--
> .bianco10sx { font-family: Verdana, Arial, Helvetica, sans-serif;
> font-size: 10px; text-decoration: none; text-align: left; color: #FFFFFF}
> .rex { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
11px;
> text-decoration: none; color: #B92203; text-align: justify}
> .lau { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
11px;
> text-decoration: none; color: #000000; text-align: justify}
> --></style>
>
> </head>
> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
>
> <%
> Msg = request("Msg")
> NonInviati = request("NonInviati")
> If NonInviati <> "" Then
> NonInviati = Split(NonInviati,"§")
> TotNum = Ubound(NonInviati)
> Else
> TotNum = 0
> End If
>
> Select Case Msg
> Case "NoUrlAut"
> Messaggio = "ATTENZIONE!!!<br>Invio Non Autorizzato..."
> Case "NoUrl"
> Messaggio = "ATTENZIONE!!!<br>Il vostro pannello di controllo non ha
> autorizzato nessun URL all'invio."
> Case "NoCrediti"
> Messaggio = "ATTENZIONE!!!<br>I crediti attuali non sono sufficienti per
> l'invio"
> Case "InvioCorretto"
> Messaggio = "L'INVIO E'STATO ESEGUITO CORRETTAMENTE"
> Case "InvioIncompleto"
> Messaggio = "ATTENZIONE!!!<br>L'invio dei messaggi non è andato
> completamente a buon fine."
> Case "NoInvio"
> Messaggio = "ATTENZIONE!!!<br>L'invio non è andato a buon fine.<br>Nessun
è
> stato fatto alcun addebito."
> Case "NumLong"
> Messaggio = "ATTENZIONE!!!<br>Il numero del destinatario è troppo lungo."
> Case "NoServerInvio"
> Messaggio = "ATTENZIONE!!!<br>L'invio degli SMS non è possibile.<br>Il
> Server dell'Operatore non è Attivo.<br>Si prega di riprovare più tardi."
> End Select
> %>
> <br><br>
> <table border="0" cellPadding="15" cellSpacing="0" align="center"
> width="315" height="180" class="lau">
> <tr>
> <td align="center"><b><font class="lau"><%=Messaggio%></font> </b></td>
> </tr>
> <%
> If TotNum <> 0 Then
> %>
> <tr>
> <td align="center"><b>Destinatari a cui non è stato possibile effettuare
> l'invio: <font class="rex"><%=TotNum%></font></b><br>
> <textarea cols="6" rows="3" style="WIDTH: 190px; HEIGHT:
> 23px;scrollbar-3dlight-color: FFFFFF; scrollbar-arrow-color: 808080;
> scrollbar-base-color: FFFFFF; scrollbar-darkshadow-color: FFFFFF;
> scrollbar-face-color: FFFFFF; scrollbar-highlight-color: FFFFFF;
> scrollbar-shadow-color: FFFFFF; scrollbar-track-color: FFFFFF" type="text"
> readonly><%For i = 1 to TotNum
> Response.Write "N°:+" & NonInviati(i)&vbcrlf
> Next%>
> </textarea>
> </td>
> </tr>
> <%
> End If
> %>
> <tr>
> <td align="center"><a href="javascript:window.close();"><img
> src="chiudi.gif" border="0"></a></td>
> </tr>
> </table>
>
> </body>
> </html>
>
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 06, 2007 Jan 06, 2007
You need some event to trigger the close window in the first place. In your
original code, you are using a gif image as the button. You still have to
click on the image, yes?

You can use javascript to set a timeout, I guess. Close the window and
redirect in 3 seconds .. something like that? You can use other events ..
whatever you use to trigger the window closing should also open the
login.asp page in the main window.


--
Nancy Gill
Adobe Community Expert
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner''s
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development

"Massimo" <info@tessyacconciature.it> wrote in message
news:enop7f$h28$1@forums.macromedia.com...
> Thank you for quick response, if I need to close and redirect without
> click on Login Now, how can I change the code??
> thank you very much
>
> Massimo
>
> "Massimo" <info@tessyacconciature.it> ha scritto nel messaggio
> news:enodff$4hl$1@forums.macromedia.com...
>> Hi, I am using DW8 and in my application after close a pop up windows the
>> user must be redirect on A Login Page (login.asp) how may I solve this
> issue
>> follow the snipped code used in pop up windows:
>>
>> Thanks in advance:
>>
>> Massimo
>>
>> <%
>> Titolo = Request.ServerVariables("REMOTE_HOST")
>> %>
>> <html>
>> <head>
>> <title><%=Titolo%></title>
>>
>> <style type="text/css"><!--
>> .bianco10sx { font-family: Verdana, Arial, Helvetica, sans-serif;
>> font-size: 10px; text-decoration: none; text-align: left; color: #FFFFFF}
>> .rex { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
> 11px;
>> text-decoration: none; color: #B92203; text-align: justify}
>> .lau { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
> 11px;
>> text-decoration: none; color: #000000; text-align: justify}
>> --></style>
>>
>> </head>
>> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
>>
>> <%
>> Msg = request("Msg")
>> NonInviati = request("NonInviati")
>> If NonInviati <> "" Then
>> NonInviati = Split(NonInviati,"§")
>> TotNum = Ubound(NonInviati)
>> Else
>> TotNum = 0
>> End If
>>
>> Select Case Msg
>> Case "NoUrlAut"
>> Messaggio = "ATTENZIONE!!!<br>Invio Non Autorizzato..."
>> Case "NoUrl"
>> Messaggio = "ATTENZIONE!!!<br>Il vostro pannello di controllo non ha
>> autorizzato nessun URL all'invio."
>> Case "NoCrediti"
>> Messaggio = "ATTENZIONE!!!<br>I crediti attuali non sono sufficienti per
>> l'invio"
>> Case "InvioCorretto"
>> Messaggio = "L'INVIO E'STATO ESEGUITO CORRETTAMENTE"
>> Case "InvioIncompleto"
>> Messaggio = "ATTENZIONE!!!<br>L'invio dei messaggi non è andato
>> completamente a buon fine."
>> Case "NoInvio"
>> Messaggio = "ATTENZIONE!!!<br>L'invio non è andato a buon
>> fine.<br>Nessun
> è
>> stato fatto alcun addebito."
>> Case "NumLong"
>> Messaggio = "ATTENZIONE!!!<br>Il numero del destinatario è troppo
>> lungo."
>> Case "NoServerInvio"
>> Messaggio = "ATTENZIONE!!!<br>L'invio degli SMS non è possibile.<br>Il
>> Server dell'Operatore non è Attivo.<br>Si prega di riprovare più tardi."
>> End Select
>> %>
>> <br><br>
>> <table border="0" cellPadding="15" cellSpacing="0" align="center"
>> width="315" height="180" class="lau">
>> <tr>
>> <td align="center"><b><font class="lau"><%=Messaggio%></font> </b></td>
>> </tr>
>> <%
>> If TotNum <> 0 Then
>> %>
>> <tr>
>> <td align="center"><b>Destinatari a cui non è stato possibile
>> effettuare
>> l'invio: <font class="rex"><%=TotNum%></font></b><br>
>> <textarea cols="6" rows="3" style="WIDTH: 190px; HEIGHT:
>> 23px;scrollbar-3dlight-color: FFFFFF; scrollbar-arrow-color: 808080;
>> scrollbar-base-color: FFFFFF; scrollbar-darkshadow-color: FFFFFF;
>> scrollbar-face-color: FFFFFF; scrollbar-highlight-color: FFFFFF;
>> scrollbar-shadow-color: FFFFFF; scrollbar-track-color: FFFFFF"
>> type="text"
>> readonly><%For i = 1 to TotNum
>> Response.Write "N°:+" & NonInviati(i)&vbcrlf
>> Next%>
>> </textarea>
>> </td>
>> </tr>
>> <%
>> End If
>> %>
>> <tr>
>> <td align="center"><a href="javascript:window.close();"><img
>> src="chiudi.gif" border="0"></a></td>
>> </tr>
>> </table>
>>
>> </body>
>> </html>
>>
>>
>
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 06, 2007 Jan 06, 2007
LATEST
hi again I am a newbie for DW8, and the code snippet showed is not mine, may
you suggest me the code for get it (redirect the user without click on the
image). Thank you for your support.

Massimo

"Nancy - Adobe Comm. Expert" <nancy@webwish.com> ha scritto nel messaggio
news:enoq5o$i3o$1@forums.macromedia.com...
> You need some event to trigger the close window in the first place. In
your
> original code, you are using a gif image as the button. You still have to
> click on the image, yes?
>
> You can use javascript to set a timeout, I guess. Close the window and
> redirect in 3 seconds .. something like that? You can use other events ..
> whatever you use to trigger the window closing should also open the
> login.asp page in the main window.
>
>
> --
> Nancy Gill
> Adobe Community Expert
> Author: Dreamweaver 8 e-book for the DMX Zone
> Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
> Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A
Beginner''s
> Guide, Mastering Macromedia Contribute
> Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web
Development
>
> "Massimo" <info@tessyacconciature.it> wrote in message
> news:enop7f$h28$1@forums.macromedia.com...
> > Thank you for quick response, if I need to close and redirect without
> > click on Login Now, how can I change the code??
> > thank you very much
> >
> > Massimo
> >
> > "Massimo" <info@tessyacconciature.it> ha scritto nel messaggio
> > news:enodff$4hl$1@forums.macromedia.com...
> >> Hi, I am using DW8 and in my application after close a pop up windows
the
> >> user must be redirect on A Login Page (login.asp) how may I solve this
> > issue
> >> follow the snipped code used in pop up windows:
> >>
> >> Thanks in advance:
> >>
> >> Massimo
> >>
> >> <%
> >> Titolo = Request.ServerVariables("REMOTE_HOST")
> >> %>
> >> <html>
> >> <head>
> >> <title><%=Titolo%></title>
> >>
> >> <style type="text/css"><!--
> >> .bianco10sx { font-family: Verdana, Arial, Helvetica, sans-serif;
> >> font-size: 10px; text-decoration: none; text-align: left; color:
#FFFFFF}
> >> .rex { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
> > 11px;
> >> text-decoration: none; color: #B92203; text-align: justify}
> >> .lau { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
> > 11px;
> >> text-decoration: none; color: #000000; text-align: justify}
> >> --></style>
> >>
> >> </head>
> >> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
> >>
> >> <%
> >> Msg = request("Msg")
> >> NonInviati = request("NonInviati")
> >> If NonInviati <> "" Then
> >> NonInviati = Split(NonInviati,"§")
> >> TotNum = Ubound(NonInviati)
> >> Else
> >> TotNum = 0
> >> End If
> >>
> >> Select Case Msg
> >> Case "NoUrlAut"
> >> Messaggio = "ATTENZIONE!!!<br>Invio Non Autorizzato..."
> >> Case "NoUrl"
> >> Messaggio = "ATTENZIONE!!!<br>Il vostro pannello di controllo non ha
> >> autorizzato nessun URL all'invio."
> >> Case "NoCrediti"
> >> Messaggio = "ATTENZIONE!!!<br>I crediti attuali non sono sufficienti
per
> >> l'invio"
> >> Case "InvioCorretto"
> >> Messaggio = "L'INVIO E'STATO ESEGUITO CORRETTAMENTE"
> >> Case "InvioIncompleto"
> >> Messaggio = "ATTENZIONE!!!<br>L'invio dei messaggi non è andato
> >> completamente a buon fine."
> >> Case "NoInvio"
> >> Messaggio = "ATTENZIONE!!!<br>L'invio non è andato a buon
> >> fine.<br>Nessun
> > è
> >> stato fatto alcun addebito."
> >> Case "NumLong"
> >> Messaggio = "ATTENZIONE!!!<br>Il numero del destinatario è troppo
> >> lungo."
> >> Case "NoServerInvio"
> >> Messaggio = "ATTENZIONE!!!<br>L'invio degli SMS non è possibile.<br>Il
> >> Server dell'Operatore non è Attivo.<br>Si prega di riprovare più
tardi."
> >> End Select
> >> %>
> >> <br><br>
> >> <table border="0" cellPadding="15" cellSpacing="0" align="center"
> >> width="315" height="180" class="lau">
> >> <tr>
> >> <td align="center"><b><font class="lau"><%=Messaggio%></font>
</b></td>
> >> </tr>
> >> <%
> >> If TotNum <> 0 Then
> >> %>
> >> <tr>
> >> <td align="center"><b>Destinatari a cui non è stato possibile
> >> effettuare
> >> l'invio: <font class="rex"><%=TotNum%></font></b><br>
> >> <textarea cols="6" rows="3" style="WIDTH: 190px; HEIGHT:
> >> 23px;scrollbar-3dlight-color: FFFFFF; scrollbar-arrow-color: 808080;
> >> scrollbar-base-color: FFFFFF; scrollbar-darkshadow-color: FFFFFF;
> >> scrollbar-face-color: FFFFFF; scrollbar-highlight-color: FFFFFF;
> >> scrollbar-shadow-color: FFFFFF; scrollbar-track-color: FFFFFF"
> >> type="text"
> >> readonly><%For i = 1 to TotNum
> >> Response.Write "N°:+" & NonInviati(i)&vbcrlf
> >> Next%>
> >> </textarea>
> >> </td>
> >> </tr>
> >> <%
> >> End If
> >> %>
> >> <tr>
> >> <td align="center"><a href="javascript:window.close();"><img
> >> src="chiudi.gif" border="0"></a></td>
> >> </tr>
> >> </table>
> >>
> >> </body>
> >> </html>
> >>
> >>
> >
> >
>
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines