Pop UP Box before going to a link

P

Phillip Vong

FR 2003. Is it possible to have a user click on a link and then a pop up
box appears saying something like "You agree to our legal terms blah blah
blah" and then they click the ok button to take them to that link? Is this
something in FP2003 or is it more coplicated than that?

Thanks!
Phil
 
J

JDR

Phil,

Yes, In FP 03 it's easy:

1- Create the hyperlink
2- Format > Behaviors > Insert > Pop Up Message
3- Type your Message > OK

JDR
*******************
 
J

Jim Buyens

You can do this with just a little scripting, such as:

<script>
function goThere(){
if (confirm("You agree to our legal terms blah blah")){
window.location.href = "thepage.htm";
}
}
</script>
<a href="javascript:goThere();">Go there.</a>

where thepage.htm is the page you want. However, this does
nothing to protect the page from people who find it via a
search engine or an e-mail from a friend. For that kind of
protection, you'd have to do something in ASP or ASP.NET.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
K

Kevin Spencer

Is this something in FP2003 or is it more coplicated than that?

Both. FrontPage is a toolset for developing webs and web pages. It has all
the tools you need to create a web page, web site, or web application.
However, just as with a set of carpentry tools, you must know the basic
concepts of building what the tools build, as well as how to use them. So,
your description of your requirement amounts to a "blueprint" or plan of
what you want to do. You can certainly use the tools of FrontPage to do it.
But you have to know what you're doing to use them. It isn't something that
FrontPage can do right out of the box, like setting up a cookie-cutter
business presence web site for you, or creating a simple feedback form.

It would require some programming skill, as well as (at the very least) some
JavaScript on the client browser. For example, you would probably want to
give the user the option to say "no" and not go to the page. Otherwise, the
message is a waste of time. Also, you need to decide how much text you want
to accompany the message. If it is small, it can be done fairly easily with
a JavaScript confirm() dialog box. On the other hand, if you want to print
out a long licencing agreement, you may need to go with an ASP solution,
which would require server-side scripting and more programming. You also
need to think about how to prevent users from accessing the page if they
have not made the agreement, which might involve some additional
configuration and/or programming on the server.

So, in conclusion, yes, it is something that you can do using FrontPage, and
yes, it is more complicated than you thought.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
 
P

Phillip Vong

Thanks JDR!!! That's perfect.

Phil


JDR said:
Phil,

Yes, In FP 03 it's easy:

1- Create the hyperlink
2- Format > Behaviors > Insert > Pop Up Message
3- Type your Message > OK

JDR
*******************
 
Top