Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 18th, 2004, 12:14 PM
programerneil programerneil is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 14 programerneil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 28 sec
Reputation Power: 0
Exclamation Help For A Notice Popup Asp

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

Reply With Quote
  #2  
Old October 24th, 2004, 06:43 PM
Leslie's Avatar
Leslie Leslie is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Honolulu
Posts: 184 Leslie User rank is Corporal (100 - 500 Reputation Level)Leslie User rank is Corporal (100 - 500 Reputation Level)Leslie User rank is Corporal (100 - 500 Reputation Level)Leslie User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 20 h 29 m 2 sec
Reputation Power: 8
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"

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > Help For A Notice Popup Asp


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway