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 7 4739
"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
"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.'
"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.
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
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
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.'
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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,...
|
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...
|
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...
|
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...
|
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...
|
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")...
|
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...
|
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...
|
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);
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |