Agree to terms popup

Discussion in 'Javascript' started by Ian Shere, Dec 16, 2003.

  1. Ian Shere

    Ian Shere Guest

    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
     
    Ian Shere, Dec 16, 2003
    #1
    1. Advertising

  2. "Ian Shere" <> schreef in bericht
    news:XiLDb.13297$...
    > 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
     
    Janwillem Borleffs, Dec 16, 2003
    #2
    1. Advertising

  3. "Ian Shere" <> 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 -
    DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
    'Faith without judgement merely degrades the spirit divine.'
     
    Lasse Reichstein Nielsen, Dec 16, 2003
    #3
  4. Ian Shere

    Eric Bohlman Guest

    "Ian Shere" <> wrote in
    news:XiLDb.13297$:

    > 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.
     
    Eric Bohlman, Dec 16, 2003
    #4
  5. Ian Shere

    Ian Shere Guest

    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" <> wrote in message
    news:3fdf82a7$0$176$...
    >
    > "Ian Shere" <> schreef in bericht
    > news:XiLDb.13297$...
    > > 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, Dec 16, 2003
    #5
  6. Ian Shere

    Grant Wagner Guest

    Lasse Reichstein Nielsen wrote:

    > "Ian Shere" <> 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 <>

    * Client-side Javascript and Netscape 4 DOM Reference available at:
    *
    http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/frames.html

    * Internet Explorer DOM Reference available at:
    *
    http://msdn.microsoft.com/workshop/author/dhtml/reference/dhtml_reference_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-developer/upgrade_2.html
     
    Grant Wagner, Dec 17, 2003
    #6
  7. Grant Wagner <> 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 -
    DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
    'Faith without judgement merely degrades the spirit divine.'
     
    Lasse Reichstein Nielsen, Dec 17, 2003
    #7
  8. JRS: In article <XiLDb.13297$>, seen in
    news:comp.lang.javascript, Ian Shere <> 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.
     
    Dr John Stockton, Dec 17, 2003
    #8
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. C B
    Replies:
    4
    Views:
    4,662
    Chris Uppal
    Nov 10, 2004
  2. Replies:
    5
    Views:
    412
    Peter Flynn
    Jan 26, 2005
  3. Zongjun  Qi
    Replies:
    1
    Views:
    300
    Victor Bazarov
    Aug 22, 2006
  4. thedarkman
    Replies:
    2
    Views:
    383
    Jonathan N. Little
    Nov 19, 2011
  5. thedarkman
    Replies:
    1
    Views:
    401
    dorayme
    Nov 19, 2011
Loading...

Share This Page