Hello all, I'm faily new to Ultradev Dreamweaver and would like ton know how to display a pop-up window warning my users not to type the direct link if they by-pass the log in form. Any assistnace will be greatly appreciate it. Tony
Depending on when you want it to pop up. For instance if you want it to pop up after they click a button, you select the button first, then goto window behaviors (not server behaviors) then select pop up message.
"If you feel a post has been helpful to you, click on the link at the bottom of their post to cast a vote for "TipMaster Of The Week". You don't need to be the one who asked the question to vote"
So if I understand correctly, if someone tries to bypass the login page you want a warning.
Which sounds like you already know how to work the restrict user access portion.
Okay, you can do the very same, just one slight change.
Open the kicked back to page. And what you may want to do to make this easier... Have two identical login pages, one that is the normal one, say default.asp and the other just slightly named different like defualt.asp (most people wouldnt notice the difference).
on whichever you choose. Select behaviors again, select pop up message - type in your message then hit ok, then you'll see a little arrow in the behavior box that will probably be next to: onclick - click that down arrow and select onload.
Here's my thought behind two pages.
First - for the people who log in normally, they don't see or get an anoying pop-up warning them.
Second - to do the correct popup method, you'd need script inside the kick-back code to do the warning. This kind of script I don't know how to do.
And last, it'd be amazingly simple to set up. The script's already written for the login page. Just change the kickback-to-page to the one with popup warning.
"If you feel a post has been helpful to you, click on the link at the bottom of their post to cast a vote for "TipMaster Of The Week". You don't need to be the one who asked the question to vote"
Yea, but then you're duplicating your efforts, and when you change something on one page, then you have to change it on the other... things tend to get unmanageable that way.
Best to just redirect them to the same url, but with a querystring attached that would tell the page to display the message:
response.redirect("login.asp?warning=1"
then on the login page, just do this:
<script language=javascript>
function showWarning(){
<%
if request.queryString("warning" = "1" then
%>
alert('I hear you knockin but you can\'t come in');
<%
end if
%>
}
</script>
<body onLoad="showWarning();">
So that the actual alert message would only be written to the client if the queryString was there. Otherwise, it would be an empty function you are calling onLoad. No harm, no foul. ;-)
lol theres the script I didn't know - thanks Link! "If you feel a post has been helpful to you, click on the link at the bottom of their post to cast a vote for "TipMaster Of The Week". You don't need to be the one who asked the question to vote"
I'm laughing only because you guys are my saviors. Not being a programmer by trade (but a graduate of Psychology)it is very very hard to "fit in" in this technology world unless one is well versed in a computer language. All of you guys need to know that your work and advise is greatly appreciated it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.