Using noscript overlaps "normal"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew Poulos

    #1

    Using noscript overlaps "normal"

    If I have a page with a bunch of content and some javascript in the head
    how do I notify the javascript disabled users that enabling javascript
    would enhance their experience. At the moment I'm trying the noscript
    tag but its content overlaps the "normal" content.

    I'd like to put a link to non-javascript pages and I'd rather not put
    the normal content in a document.write.


    Andrew Poulos
  • Michael Winter

    #2
    Re: Using noscript overlaps "normal&qu ot;

    On Tue, 14 Dec 2004 21:41:06 +1100, Andrew Poulos <ap_prog@hotmai l.com>
    wrote:
    [color=blue]
    > If I have a page with a bunch of content and some javascript in the head
    > how do I notify the javascript disabled users that enabling javascript
    > would enhance their experience.[/color]

    You don't need to.

    Visitors that lack scripting support usually lack it for a reason so
    telling them to turn it on (if that's even possible) is a waste of time.

    If the script(s) your documents use really are just to "enhance their
    experience", users really don't need to know. If those scripts are
    required, and this is a Web page, you probably need to rethink your design.

    [snip]

    Mike

    --
    Michael Winter
    Replace ".invalid" with ".uk" to reply by e-mail.

    Comment

    • Andrew Poulos

      #3
      Re: Using noscript overlaps &quot;normal&qu ot;

      Michael Winter wrote:
      [color=blue]
      > On Tue, 14 Dec 2004 21:41:06 +1100, Andrew Poulos <ap_prog@hotmai l.com>
      > wrote:
      >[color=green]
      >> If I have a page with a bunch of content and some javascript in the
      >> head how do I notify the javascript disabled users that enabling
      >> javascript would enhance their experience.[/color]
      >
      > You don't need to.
      >
      > Visitors that lack scripting support usually lack it for a reason so
      > telling them to turn it on (if that's even possible) is a waste of time.
      >
      > If the script(s) your documents use really are just to "enhance their
      > experience", users really don't need to know. If those scripts are
      > required, and this is a Web page, you probably need to rethink your design.[/color]

      I used the term "enhance their experience" so people wouldn't jump on me
      for making pages that are dependant on scripting support. Sorry, I
      didn't want to get into a discussion about the client's specification
      etc. and not get my question addressed. Still it seems my silly ploy
      backfired.


      Andrew Poulos

      Comment

      • Michael Winter

        #4
        Re: Using noscript overlaps &quot;normal&qu ot;

        On Tue, 14 Dec 2004 22:19:41 +1100, Andrew Poulos <ap_prog@hotmai l.com>
        wrote:

        [snip]
        [color=blue]
        > I used the term "enhance their experience" so people wouldn't jump on me
        > for making pages that are dependant on scripting support.[/color]

        People can often say one thing and mean another entirely. I just wanted to
        make the point clear.

        Whether the script(s) are solely an enhancement or not, the user doesn't
        need to be told - and shouldn't be told - to alter their configuration. As
        I said, users without scripting support usually lack that support for a
        reason and they will not, or simply cannot, change that just because you
        say they should. Besides, they should be well aware that they will be
        missing out on features that are provided through scripting.

        [snip]

        Mike

        --
        Michael Winter
        Replace ".invalid" with ".uk" to reply by e-mail.

        Comment

        • Evertjan.

          #5
          Re: Using noscript overlaps &quot;normal&qu ot;

          Andrew Poulos wrote on 14 dec 2004 in comp.lang.javas cript:
          [color=blue]
          > If I have a page with a bunch of content and some javascript in the
          > head how do I notify the javascript disabled users that enabling
          > javascript would enhance their experience. At the moment I'm trying
          > the noscript tag but its content overlaps the "normal" content.
          >
          > I'd like to put a link to non-javascript pages and I'd rather not put
          > the normal content in a document.write.
          >[/color]

          It should not, unless you use some very tricky css.

          Try this, sorry: OT on this NG:

          <noscript style='font-size:20pt;color :yellow;
          background-color:#555;z-index:9999;text-align:center;'>
          <br><br><br>
          Idiot!
          <br><br><br>
          Not enabling scripting should be made a crime against cyberlife!
          <br><br>
          <a href='/moronpage.html' >Press this, you moron</a>
          <br><br>
          </noscript>

          Not tested,
          because I don't even want to know how to switch scripting off.

          --
          Evertjan.
          The Netherlands.
          (Please change the x'es to dots in my emailaddress)

          Comment

          • Tim Williams

            #6
            Re: Using noscript overlaps &quot;normal&qu ot;

            Place the " blah blah enable javascript blah" in a div at the top of
            the page and use the onload event to hide it.

            Tim.


            "Andrew Poulos" <ap_prog@hotmai l.com> wrote in message
            news:41bec31b$0 $21722$5a62ac22 @per-qv1-newsreader-01.iinet.net.au ...[color=blue]
            > If I have a page with a bunch of content and some javascript in the
            > head how do I notify the javascript disabled users that enabling
            > javascript would enhance their experience. At the moment I'm trying
            > the noscript tag but its content overlaps the "normal" content.
            >
            > I'd like to put a link to non-javascript pages and I'd rather not
            > put the normal content in a document.write.
            >
            >
            > Andrew Poulos[/color]


            Comment

            • Andrew Poulos

              #7
              Re: Using noscript overlaps &quot;normal&qu ot;


              <clipped>
              [color=blue]
              > Whether the script(s) are solely an enhancement or not, the user
              > doesn't need to be told - and shouldn't be told - to alter their
              > configuration. As I said, users without scripting support usually lack
              > that support for a reason and they will not, or simply cannot, change[/color]

              If I write a Flash-based piece of e-learning that uses javascript to
              talk to a SCORM LMS are you saying it should just fail silently if
              javascript is disabled? Surely informing users, even if they can't act
              on the information, is preferable?
              [color=blue]
              > that just because you say they should. Besides, they should be well
              > aware that they will be missing out on features that are provided
              > through scripting.[/color]

              You assume that a user will be using a computer that they regularly have
              access to and so are fully aware of its configuration. What if I tried
              to use a paranoid colleague's computer?

              Andrew Poulos

              Comment

              • Michael Winter

                #8
                Re: Using noscript overlaps &quot;normal&qu ot;

                On Wed, 15 Dec 2004 22:23:24 +1100, Andrew Poulos <ap_prog@hotmai l.com>
                wrote:
                [color=blue]
                >
                > <clipped>
                >[color=green]
                >> Whether the script(s) are solely an enhancement or not, the user
                >> doesn't need to be told - and shouldn't be told - to alter their
                >> configuration. As I said, users without scripting support usually lack
                >> that support for a reason and they will not, or simply cannot, change[/color]
                >
                > If I write a Flash-based piece of e-learning that uses javascript to
                > talk to a SCORM LMS are you saying it should just fail silently if
                > javascript is disabled?[/color]

                That is a different situation. As usual, if you don't mention an
                environment I, and many others, will assume that we're discussing the Web
                in general.
                [color=blue]
                > Surely informing users, even if they can't act on the information, is
                > preferable?[/color]

                With something that you've just described, yes, but on the Web, no. As you
                know, a site should be functional without client-side scripting support so
                the need to inform a visitor in that situation shouldn't arise in the
                first place. If the script is an enhancement, why should the user care?
                How does telling a visitor to turn on scripting help a person who doesn't
                even know what Javascript is? Similarly the user of a public-access system
                who has no control over the set up whatsoever? If the user has to jump
                through hoops to use the site without scripting, the design is flawed.

                Users should be spared technical details unless you're sure that they are
                capable of understanding them and that they need to know the information.

                [snip]
                [color=blue]
                > What if I tried to use a paranoid colleague's computer?[/color]

                If you're using someone else's system, surely you should be respecting the
                decisions they make when configuring it?

                Mike

                --
                Michael Winter
                Replace ".invalid" with ".uk" to reply by e-mail.

                Comment

                • Dr John Stockton

                  #9
                  Re: Using noscript overlaps &quot;normal&qu ot;

                  JRS: In article <Xns95BFCD5CCCD Eeejj99@194.109 .133.29>, dated Tue, 14
                  Dec 2004 19:12:13, seen in news:comp.lang. javascript, Evertjan.
                  <exjxw.hannivoo rt@interxnl.net > posted :[color=blue]
                  >
                  >Not tested,
                  >because I don't even want to know how to switch scripting off.[/color]

                  For test purposes, if your browser is like mine, it suffices to put
                  <script>.</script>
                  on the test page before the other scripting, and to answer "No".

                  That way, only the page under test can possibly be affected, I hope.

                  Other characters can be used, but not a digit; I'm not sure what the
                  *most* invalid one-keypress script might be.

                  <script>?</script>
                  might be better, on some keyboards; >?< are all shifted and nearby.

                  H'mm - on my system, NOSCRIPT does not show immediately after a failing
                  script, which may be reasonable.

                  --
                  © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME. ©
                  Web <URL:http://www.merlyn.demo n.co.uk/> - w. FAQish topics, links, acronyms
                  PAS EXE etc : <URL:http://www.merlyn.demo n.co.uk/programs/> - see 00index.htm
                  Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.

                  Comment

                  • Evertjan.

                    #10
                    Re: Using noscript overlaps &quot;normal&qu ot;

                    Dr John Stockton wrote on 15 dec 2004 in comp.lang.javas cript:
                    [color=blue]
                    > JRS: In article <Xns95BFCD5CCCD Eeejj99@194.109 .133.29>, dated Tue, 14
                    > Dec 2004 19:12:13, seen in news:comp.lang. javascript, Evertjan.[color=green]
                    >>
                    >>Not tested,
                    >>because I don't even want to know how to switch scripting off.[/color]
                    >
                    > For test purposes, if your browser is like mine, it suffices to put
                    > <script>.</script>
                    > on the test page before the other scripting, and to answer "No".[/color]

                    Nice idea.
                    [color=blue]
                    > H'mm - on my system, NOSCRIPT does not show immediately after a failing
                    > script, which may be reasonable.
                    >[/color]

                    As scripting error is not the same as no scripting available:

                    <script>.</script>
                    <noscript>Doesn 't show on IE6</noscript>

                    --
                    Evertjan.
                    The Netherlands.
                    (Please change the x'es to dots in my emailaddress)

                    Comment

                    • Michael Winter

                      #11
                      Re: Using noscript overlaps &quot;normal&qu ot;

                      On Wed, 15 Dec 2004 14:16:26 +0000, Dr John Stockton
                      <spam@merlyn.de mon.co.uk> wrote:

                      [snip]
                      [color=blue]
                      > H'mm - on my system, NOSCRIPT does not show immediately
                      > after a failing script, which may be reasonable.[/color]

                      It never should. The contents of a NOSCRIPT element should only be
                      rendered if:

                      1) A browser doesn't support client-side scripting of any kind
                      2) A browser has been configured to ignore client-side scripts
                      3) A browser doesn't support the client-side scripting language used
                      by a previous SCRIPT element.

                      A failed script shouldn't result in the display of a NOSCRIPT element's
                      contents.

                      Mike

                      --
                      Michael Winter
                      Replace ".invalid" with ".uk" to reply by e-mail.

                      Comment

                      • Randy Webb

                        #12
                        Re: Using noscript overlaps &quot;normal&qu ot;

                        Michael Winter wrote:[color=blue]
                        > On Wed, 15 Dec 2004 14:16:26 +0000, Dr John Stockton
                        > <spam@merlyn.de mon.co.uk> wrote:
                        >
                        > [snip]
                        >[color=green]
                        >> H'mm - on my system, NOSCRIPT does not show immediately
                        >> after a failing script, which may be reasonable.[/color]
                        >
                        >
                        > It never should. The contents of a NOSCRIPT element should only be
                        > rendered if:
                        >
                        > 1) A browser doesn't support client-side scripting of any kind
                        > 2) A browser has been configured to ignore client-side scripts
                        > 3) A browser doesn't support the client-side scripting language used
                        > by a previous SCRIPT element.[/color]

                        Testing shows 3 to be false though:

                        <script language="fakeL anguage" type="fake/language">
                        </script>
                        <noscript>
                        This should show but doesn't,(except in Opera 7) even though the browser
                        doesn't support the "fakeLangua ge" scripting language. IE6 and Mozilla
                        both failed to display this text.
                        </noscript>

                        --
                        Randy
                        comp.lang.javas cript FAQ - http://jibbering.com/faq

                        Comment

                        • Michael Winter

                          #13
                          Re: Using noscript overlaps &quot;normal&qu ot;

                          On Wed, 15 Dec 2004 17:14:27 -0500, Randy Webb <HikksNotAtHome @aol.com>
                          wrote:
                          [color=blue]
                          > Michael Winter wrote:[/color]

                          [snip]
                          [color=blue][color=green]
                          >> The contents of a NOSCRIPT element should only be rendered if:[/color][/color]

                          [snip]
                          [color=blue][color=green]
                          >> 3) A browser doesn't support the client-side scripting language
                          >> used by a previous SCRIPT element.[/color]
                          >
                          > Testing shows 3 to be false though:[/color]

                          [snip]

                          To my credit, I said "should" not "does". :P

                          I was restating what the HTML specification sets out. Considering that few
                          client-side scripting languages exists, most vendors probably chose to
                          ignore that bit.

                          Mike

                          --
                          Michael Winter
                          Replace ".invalid" with ".uk" to reply by e-mail.

                          Comment

                          • Dr John Stockton

                            #14
                            Re: Using noscript overlaps &quot;normal&qu ot;

                            JRS: In article <opsi1scp06x13k vk@atlantis>, dated Wed, 15 Dec 2004
                            11:42:42, seen in news:comp.lang. javascript, Michael Winter <M.Winter@bl
                            ueyonder.co.inv alid> posted :[color=blue]
                            >
                            >With something that you've just described, yes, but on the Web, no. As you
                            >know, a site should be functional without client-side scripting support so
                            >the need to inform a visitor in that situation shouldn't arise in the
                            >first place.[/color]

                            Some things are only possible client-side; for example, if the server
                            offers no programmability or if the page is intended to be usable after
                            the reader has disconnected from the Net.

                            And I could easily write a page which used so much CPU resource that the
                            user ought to supply it; checking Zeller's work over the full javascript
                            date range requires 2E8 * 2 * 2 calculations each to be done in two
                            ways. If that were popular, the server might not wish to pay. Come to
                            think of it, I already have a page approaching that.
                            [color=blue]
                            > If the script is an enhancement, why should the user care?[/color]

                            Because if he's getting a lesser experience he ought to be told, in
                            whatever terms are appropriate. Only if he's missing something which
                            should be more or less invisible, say local validation, can he rightly
                            be left ignorant.
                            [color=blue]
                            >How does telling a visitor to turn on scripting help a person who doesn't
                            >even know what Javascript is? Similarly the user of a public-access system
                            >who has no control over the set up whatsoever? If the user has to jump
                            >through hoops to use the site without scripting, the design is flawed.[/color]

                            "If you were using a computer with javascript enabled, you would also be
                            able to see ... ."
                            [color=blue]
                            >Users should be spared technical details unless you're sure that they are
                            >capable of understanding them and that they need to know the information.[/color]

                            They don't need to be able to understand that, only to repeat it to
                            someone who knows more.

                            [color=blue][color=green]
                            >> What if I tried to use a paranoid colleague's computer?[/color]
                            >
                            >If you're using someone else's system, surely you should be respecting the
                            >decisions they make when configuring it?[/color]

                            Agreed. But not to the extent of not seeking a less paranoid
                            colleague's computer.

                            --
                            © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
                            <URL:http://www.jibbering.c om/faq/> JL/RC: FAQ of news:comp.lang. javascript
                            <URL:http://www.merlyn.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
                            <URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.

                            Comment

                            • ap_prog@hotmail.com

                              #15
                              Re: Using noscript overlaps &quot;normal&qu ot;

                              Michael Winter wrote:[color=blue]
                              > On Wed, 15 Dec 2004 22:23:24 +1100, Andrew Poulos[/color]
                              <ap_prog@hotmai l.com>[color=blue]
                              > wrote:
                              >[color=green]
                              > >
                              > > <clipped>
                              > >[color=darkred]
                              > >> Whether the script(s) are solely an enhancement or not, the user
                              > >> doesn't need to be told - and shouldn't be told - to alter their
                              > >> configuration. As I said, users without scripting support usually[/color][/color][/color]
                              lack[color=blue][color=green][color=darkred]
                              > >> that support for a reason and they will not, or simply cannot,[/color][/color][/color]
                              change[color=blue][color=green]
                              > >
                              > > If I write a Flash-based piece of e-learning that uses javascript[/color][/color]
                              to[color=blue][color=green]
                              > > talk to a SCORM LMS are you saying it should just fail silently if[/color][/color]
                              [color=blue][color=green]
                              > > javascript is disabled?[/color]
                              >
                              > That is a different situation. As usual, if you don't mention an
                              > environment I, and many others, will assume that we're discussing the[/color]
                              Web[color=blue]
                              > in general.
                              >[color=green]
                              > > Surely informing users, even if they can't act on the information,[/color][/color]
                              is[color=blue][color=green]
                              > > preferable?[/color]
                              >
                              > With something that you've just described, yes, but on the Web, no.[/color]
                              As you[color=blue]
                              > know, a site should be functional without client-side scripting[/color]
                              support so

                              I just tested my own site without javascript or CSS enabled and it
                              looks ok (partly because I still use tables for basic layout).
                              [color=blue]
                              > the need to inform a visitor in that situation shouldn't arise in the[/color]
                              [color=blue]
                              > first place. If the script is an enhancement, why should the user[/color]
                              care?

                              Perhaps the user is unaware that a 'better' experience is available.
                              Much like how designers put a 'skip intro' button on Flash animations.
                              I, as the user, get to choose at the point the animation is to play not
                              for every animation forever. Soemtimes I want/need to see the intro.
                              [color=blue]
                              > How does telling a visitor to turn on scripting help a person who[/color]
                              doesn't[color=blue]
                              > even know what Javascript is? Similarly the user of a public-access[/color]
                              system[color=blue]
                              > who has no control over the set up whatsoever? If the user has to[/color]
                              jump[color=blue]
                              > through hoops to use the site without scripting, the design is[/color]
                              flawed.

                              I understand what you're saying and I agree with it but where do you
                              reasonably stop?

                              What if a user does not read english? What if a user at a public
                              terminal cannot use a mouse, keyboard or trackball?
                              [color=blue]
                              > Users should be spared technical details unless you're sure that they[/color]
                              are[color=blue]
                              > capable of understanding them and that they need to know the[/color]
                              information.

                              What do you consider a technical detail? My mother wouldn't be able to
                              turn a computer on let alone use it.
                              [color=blue][color=green]
                              > > What if I tried to use a paranoid colleague's computer?[/color]
                              >
                              > If you're using someone else's system, surely you should be[/color]
                              respecting the[color=blue]
                              > decisions they make when configuring it?[/color]

                              A computer is just a tool. If a user allows me access to it I will,
                              with their permission, configure it any way I like.


                              Anyway I 'solved' my problem thus:

                              script
                              onload - div show

                              body
                              noscript
                              enable javascript

                              div - style hide
                              content
                              But of course it's not pretty with CSS disabled.

                              Andrew Poulos

                              Comment

                              Working...