By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,712 Members | 2,111 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,712 IT Pros & Developers. It's quick & easy.

Agree to terms popup

P: n/a
I have an FAQ page on my site, but, because much of the information could be
relative to the area council's bylaws, I want to have a pop-up window appear
when someone clicks the "FAQ's" menu button. In the window will be my
disclaimer regarding the use of the information on the FAQ's page, and then
I want them to click either "I agree" (action will close pop-up and direct
them to FAQ's page) or "I disagree" (action will close pop-up and leave them
at page they were at when clicking the link).

The script needs to be linked to the clicking of an image. Thanks.

--
Ian Shere
Tarzan Design Ltd
Award Winning Architecture
www.tarzandesign.co.nz
Jul 20 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a

"Ian Shere" <ia*@tarzandesign.co.nz> schreef in bericht
news:Xi********************@news02.tsnz.net...
I have an FAQ page on my site, but, because much of the information could be relative to the area council's bylaws, I want to have a pop-up window appear when someone clicks the "FAQ's" menu button. In the window will be my
disclaimer regarding the use of the information on the FAQ's page, and then I want them to click either "I agree" (action will close pop-up and direct them to FAQ's page) or "I disagree" (action will close pop-up and leave them at page they were at when clicking the link).

The script needs to be linked to the clicking of an image. Thanks.


And what if I have JS disabled in my browser? T&C pages should always show
their text in a normal window with the "I Agree" button on the bottom of the
page...
JW

Jul 20 '05 #2

P: n/a
"Ian Shere" <ia*@tarzandesign.co.nz> writes:
I have an FAQ page on my site, but, because much of the information could be
relative to the area council's bylaws, I want to have a pop-up window appear
when someone clicks the "FAQ's" menu button. In the window will be my
disclaimer regarding the use of the information on the FAQ's page,
Have you considered using the confirm dialog?

I.e.
<script type="text/javascript">
var faqDisclaimer =
"Blah blah bla ....................................\n" +
"blah blah ............ \n" +
"blah blah blah! \n\n" +
"Press OK to accept this.";
</script>
<a href="faq.html" onclick="return confirm(faqDisclaimer);">
<img src="faq.png">
</a>

and then I want them to click either "I agree" (action will close
pop-up and direct them to FAQ's page) or "I disagree" (action will
close pop-up and leave them at page they were at when clicking the
link).

The script needs to be linked to the clicking of an image. Thanks.


---
<script type="text/javascript">
function gotoFAQ() {
window.open("faqquery.html","_blank","...");
}
</script>

<a href="faq.html"><img src="faq.png" onclick="gotoFAQ();return false;"></a>
---
In the linked page ("faqquery.html" here), have it contain:
---

<script type="text/javascript">
function accept() {
window.opener.location.href="faq.html";
window.opener.focus();
window.close();
}
</script>
<h1>DISCLAIMER</h1>
<p>Blah blah .... </p>
<p><input type="button" value="I agree" onclick="accept()">
<input type="button" value="I disagree" onclick="window.close()"></p>
---

(warning, untested code, remember to fill in the blanks)

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #3

P: n/a
"Ian Shere" <ia*@tarzandesign.co.nz> wrote in
news:Xi********************@news02.tsnz.net:
I have an FAQ page on my site, but, because much of the information
could be relative to the area council's bylaws, I want to have a
pop-up window appear when someone clicks the "FAQ's" menu button. In
the window will be my disclaimer regarding the use of the information
on the FAQ's page, and then I want them to click either "I agree"
(action will close pop-up and direct them to FAQ's page) or "I
disagree" (action will close pop-up and leave them at page they were
at when clicking the link).

The script needs to be linked to the clicking of an image. Thanks.


Quite simply, don't do it. Put the disclaimer in a prominent position on
the FAQ page. You're not going to gain any sort of legal advantage by
using a client-side "click to accept" prompt since such things don't leave
any records.
Jul 20 '05 #4

P: n/a
Thanks Janwillem; something I hadn't thought of. If a visitor has JS
disabled then there will be quite a bit of other stuff that won't work
either, but, most importantly, the T&C wouldn't and they may get direct
access which I obviously don't want. Perhaps a moot point though as all the
answers to the FAQ's open in a JS window!!

But your point taken; same caution re pop-up blockers too. I have a text
box on the FAQ page telling people that, if they use a blocker, they won't
see any answers.

--
Ian Shere
Tarzan Design Ltd
Award Winning Architecture
www.tarzandesign.co.nz
"Janwillem Borleffs" <jw@jwscripts.com> wrote in message
news:3f*********************@news.wanadoo.nl...

"Ian Shere" <ia*@tarzandesign.co.nz> schreef in bericht
news:Xi********************@news02.tsnz.net...
I have an FAQ page on my site, but, because much of the information
could be
relative to the area council's bylaws, I want to have a pop-up window appear
when someone clicks the "FAQ's" menu button. In the window will be my
disclaimer regarding the use of the information on the FAQ's page, and

then
I want them to click either "I agree" (action will close pop-up and

direct
them to FAQ's page) or "I disagree" (action will close pop-up and leave

them
at page they were at when clicking the link).

The script needs to be linked to the clicking of an image. Thanks.


And what if I have JS disabled in my browser? T&C pages should always show
their text in a normal window with the "I Agree" button on the bottom of

the page...
JW

Jul 20 '05 #5

P: n/a
Lasse Reichstein Nielsen wrote:
"Ian Shere" <ia*@tarzandesign.co.nz> writes:
I have an FAQ page on my site, but, because much of the information could be
relative to the area council's bylaws, I want to have a pop-up window appear
when someone clicks the "FAQ's" menu button. In the window will be my
disclaimer regarding the use of the information on the FAQ's page,


Have you considered using the confirm dialog?

I.e.
<script type="text/javascript">
var faqDisclaimer =
"Blah blah bla ....................................\n" +
"blah blah ............ \n" +
"blah blah blah! \n\n" +
"Press OK to accept this.";
</script>
<a href="faq.html" onclick="return confirm(faqDisclaimer);">
<img src="faq.png">
</a>


And if I have JavaScript disabled, I can read the FAQ without agreeing to their
terms. Heck, I can read the FAQ without agreeing to the terms by simply
identifying the target page and going there directly.

And since I haven't read the disclaimer, I guess I'm not bound by whatever terms
they wanted me to agree to before reading the FAQ, so if the FAQ suggests I jump
off a building without a parachute, but the disclaimer said I do so at my own
risk, and I follow the FAQ without having read the disclaimer, who's at fault?

It's a silly example, but I'm trying to point out that a disclaimer that no one
has to read is completely pointless.

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 20 '05 #6

P: n/a
Grant Wagner <gw*****@agricoreunited.com> writes:
And if I have JavaScript disabled, I can read the FAQ without
agreeing to their terms. Heck, I can read the FAQ without agreeing
to the terms by simply identifying the target page and going there
directly.
That was deliberate. I prefer pages that work without Javascript as well
as with, so the fallback was to allowing access.
And since I haven't read the disclaimer, I guess I'm not bound by
whatever terms they wanted me to agree to before reading the FAQ, so
if the FAQ suggests I jump off a building without a parachute, but
the disclaimer said I do so at my own risk, and I follow the FAQ
without having read the disclaimer, who's at fault?
Without my signature, they'll be hard pressed to prove that I agreed
to anything. It's the usual problem with, e.g., click-wrap licenses.
They are (probably) not binding. And if they are, my cat pressed the
"I agree" button, not me.
It's a silly example, but I'm trying to point out that a disclaimer
that no one has to read is completely pointless.


Willfully avoiding the disclaimer should not void it. Putting a
prominent link at the FAQ page with the title "DISCLAIMER, must read!"
should be sufficient.

But then again, I am not a lawyer, and I don't live in the US :)
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #7

P: n/a
JRS: In article <Xi********************@news02.tsnz.net>, seen in
news:comp.lang.javascript, Ian Shere <ia*@tarzandesign.co.nz> posted at
Wed, 17 Dec 2003 11:03:36 :-
I have an FAQ page on my site, but, because much of the information could be
relative to the area council's bylaws, I want to have a pop-up window appear
when someone clicks the "FAQ's" menu button.


Better to have, at the top of every page,

<p align=center><a href="cond-use.htm"><big>CONDITIONS OF USE</big></a>

Then, everyone reaching the page should see it.

If you have anchors within the page, repeat that text at the bottom. Do
it all in plain basic HTML, so that it is not possible for the page to
be readable without the conditions being reachable.

On second thoughts, make that an absolute, rather than a relative, link
so that the conditions are accessible from a copy of the real page.

--
John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> Jsc maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/Jsc/&c, FAQ topics, links.
Jul 20 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.