|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I Have A Notice Popup On My Intranet And on The Homepage It has got this code
<script> var newwindow; function notice(url) { newwindow=window.open(url,'name','height=260,width =290'); if (window.focus) {newwindow.focus()} } </script> And The Open Code <script language="JavaScript">notice('pop1.html');</script> But I want To Make It Be Turned On & Off. so ive got a database witha table called notice & a record. ive got the connection working but this is what is not working. <%if strnotice = "Full" then%> <script language="JavaScript">notice('pop1.html');</script> <%else %><%end if%> <%Response.Write(strnotice)%> Returns On so thats working but i need help on the popup with if strnotice is "on" If You Could Plz Help Me Thanks |
|
#2
|
||||
|
||||
|
huh? I'm a little confused about what you are asking ... what exactly are you storing in the table called Notice? Is it a boolean? Is it a string with the value "On" or "Off"? If it is "On" or "Off" you need to say
<%if strnotice = "On" then%> if it is a boolean <%if strnotice = True then %> I don't understand where the value "Full" comes from when you said the variable contains "On" |
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > Help For A Notice Popup Asp |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|