473,804 Members | 3,311 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Agree to terms popup

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
7 4761

"Ian Shere" <ia*@tarzandesi gn.co.nz> schreef in bericht
news:Xi******** ************@ne ws02.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
"Ian Shere" <ia*@tarzandesi gn.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(faqDisc laimer);">
<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("fa qquery.html","_ blank","...");
}
</script>

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

<script type="text/javascript">
function accept() {
window.opener.l ocation.href="f aq.html";
window.opener.f ocus();
window.close();
}
</script>
<h1>DISCLAIME R</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/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #3
"Ian Shere" <ia*@tarzandesi gn.co.nz> wrote in
news:Xi******** ************@ne ws02.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
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.c om> wrote in message
news:3f******** *************@n ews.wanadoo.nl. ..

"Ian Shere" <ia*@tarzandesi gn.co.nz> schreef in bericht
news:Xi******** ************@ne ws02.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
Lasse Reichstein Nielsen wrote:
"Ian Shere" <ia*@tarzandesi gn.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(faqDisc laimer);">
<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*****@agrico reunited.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
Grant Wagner <gw*****@agrico reunited.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/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #7
JRS: In article <Xi************ ********@news02 .tsnz.net>, seen in
news:comp.lang. javascript, Ian Shere <ia*@tarzandesi gn.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>C ONDITIONS 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.demo n.co.uk/js-index.htm> Jsc maths, dates, sources.
<URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/Jsc/&c, FAQ topics, links.
Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
18331
by: Noozer | last post by:
When using the WebBrowser control, is it possible to cause popup windows to appear within the WebBrowser control itself instead of a new window? This is what I've written in the NewWindow2 event, but I can't figure out how to get the popup to appear in the same browser window. In this code the user is presented with "Yes", "No" or "Cancel". Yes allows the popup to spawn a window, No should load the popup in the same window and Cancel...
1
6516
by: Ben Wan | last post by:
I got 2 error from the following code below... 1. I couldn't load up the picture since the picture is at (C:\company\image\largePic.jpg) 2. I got a page error in my 'index.html' when calling popup(x,x,x) for the 2nd time. The code are as followed. Can anyone help please? Thank you very much~~ Ben
53
7384
by: Bill | last post by:
Hello Programmers, I am looking for either Java Script (OR HTML etc) to DEFEAT Pop-up Stoppers e.g It will bring up a window that will LOOK like a Pop-up FEEL like a Pop-up Allow a name and e-mail entry BUT is not affected by Popup Stopper, PopUp Killer etc
15
18750
by: | last post by:
So many websites can get around my Googlebar's popup blockers. Even Opera 8 can not stop those popups. I looked into the codes, and I can find nothing showing me how it is done. Can anyone help me find what how it is done? First go to http://www.sitepoint.com/forums/showthread.php?t=184025&page=1&pp=25 Click on Last ? on the page
7
3678
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses pageA.html 2. User clicks on menu link to open popup.html 3. pageA.html checks if popup.html is already open. It is not, open
4
6829
by: jobs | last post by:
the javascript: function ShowTooltip(L1in) { document.getElementById("L1").innerText=L1in; y = event.clientY + document.documentElement.scrollTop; var Popup= document.getElementById("Popup") Popup.style.display="block"; Popup.style.position="absolute"; Popup.style.left = 220;
2
2052
by: webspinster | last post by:
Okay, guys, if it seems I don't know a whole lot it's because I don't. I create and edit websites using Hot Dog Pro and have done very rudamentary HTML language on my own. Here's my challenge. I need to create a popup upon checkout that the customer needs to click acknowledging they agree to the shipping/guarantee terms of the vendor before completing their transaction. You know when you are installing software you get those popups that...
6
3074
by: webspinster | last post by:
Okay, guys, if it seems I don't know a whole lot it's because I don't. I create and edit websites using Hot Dog Pro and have done very rudamentary HTML language on my own. Here's my challenge. I need to create a popup upon checkout that the customer needs to click acknowledging they agree to the shipping/guarantee terms of the vendor before completing their transaction. You know when you are installing software you get those popups that...
1
1705
by: Mike1961 | last post by:
Hi everyone. I have problem with this function javascript: var popup = null; function OpenPopup(fld, tbl, col, w, h) { var pw = Math.floor((screen.width - w) / 2);
0
10589
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10327
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7625
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.