|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello, cant make this script to go.
<%
nstate = rs("nstate") observ = rs("observ") if cInt(nstate)>0 then %> <script type="text/javascript"> var nstate =<%=nstate%>; var observ ="<%=observ%>"; popUp(nstate,observ); </script> <% if cInt(nstate)=2 and cInt(Session("UserNfunc"))>0 then response.Redirect"Main_Backgr.asp" exit sub end if end if %> This script tests if the state of a DB row is 0,1 or 2. If it is 1 or 2 shows a message in a popup window. That’s what popup() do. When is 2, it should redirect the user out, after that popup window close.(it is a modal window) The problem is that when both cInt(nstate)=2 and cInt(Session("UserNfunc"))>0 conditions are true it gets redirect but doesn’t show the pop up window. Please some one
__________________
atferraz |
|
#2
|
|||
|
|||
|
ASP code runs on the web server, not the user's browser, so maybe the popup is on the server's display.
|
|
#3
|
|||
|
|||
|
so the solution should be to redirect inside de script?
|
|
#4
|
|||
|
|||
|
are you saying that you want to redirect the pop-up window? if so you're going to have to create another javascript function (up where you created the popUp() one) that changes the .location property of the pop up window and then replace your response.redirect with another
Code:
%>
<sciprt language="javascript">
// call the popup redirect function here
</script>
<%
end sub
end if
end if
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Hello, cant make this script to go. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|