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

Home Posts Topics Members FAQ

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
Jul 23 '05 #1
20 1718
On Tue, 14 Dec 2004 21:41:06 +1100, Andrew Poulos <ap*****@hotmai l.com>
wrote:
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.


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.
Jul 23 '05 #2
Michael Winter wrote:
On Tue, 14 Dec 2004 21:41:06 +1100, Andrew Poulos <ap*****@hotmai l.com>
wrote:
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.


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.


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
Jul 23 '05 #3
On Tue, 14 Dec 2004 22:19:41 +1100, Andrew Poulos <ap*****@hotmai l.com>
wrote:

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


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.
Jul 23 '05 #4
Andrew Poulos wrote on 14 dec 2004 in comp.lang.javas cript:
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.


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)
Jul 23 '05 #5
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*****@hotmai l.com> wrote in message
news:41******** *************** @per-qv1-newsreader-01.iinet.net.au ...
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

Jul 23 '05 #6

<clipped>
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
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?
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.


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
Jul 23 '05 #7
On Wed, 15 Dec 2004 22:23:24 +1100, Andrew Poulos <ap*****@hotmai l.com>
wrote:

<clipped>
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
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?


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.
Surely informing users, even if they can't act on the information, is
preferable?
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]
What if I tried to use a paranoid colleague's computer?


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.
Jul 23 '05 #8
JRS: In article <Xn************ *******@194.109 .133.29>, dated Tue, 14
Dec 2004 19:12:13, seen in news:comp.lang. javascript, Evertjan.
<ex************ **@interxnl.net > posted :

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


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.
Jul 23 '05 #9
Dr John Stockton wrote on 15 dec 2004 in comp.lang.javas cript:
JRS: In article <Xn************ *******@194.109 .133.29>, dated Tue, 14
Dec 2004 19:12:13, seen in news:comp.lang. javascript, Evertjan.

Not tested,
because I don't even want to know how to switch scripting off.
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".


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


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)
Jul 23 '05 #10

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

Similar topics

19
6494
by: Jane Austine | last post by:
As far as I know python's threading module models after Java's. However, I can't find something equivalent to Java's interrupt and isInterrupted methods, along with InterruptedException. "somethread.interrupt()" will wake somethread up when it's in sleeping/waiting state. Is there any way of doing this with python's thread? I suppose thread interrupt is a very primitive functionality for stopping a blocked thread.
68
4387
by: Marco Bubke | last post by:
Hi I have read some mail on the dev mailing list about PEP 318 and find the new Syntax really ugly. def foo(x, y): pass I call this foo(1, 2), this isn't really intuitive to me! Also I don't like the brackets.
6
3670
by: Christian Brechbühler | last post by:
The template std::valarray behaves pretty much like a mathematical vector. Arithmetic operators apply elementwise. Now I'd like to extend this to a user-defined type, e.g., complex. Multiplying a double by a complex number gives a complex number. Now I would like to multiply a valarray of doubles by a complex number and get a valarray of complex numbers. Of course, a C++ compiler won't jump to that conclusion; I need to define...
14
2266
by: Ernst Murnleitner | last post by:
Dear Readers, Is it possible to forbid conversion from this or use of this in general except where it is explicitly wanted? Reason: I changed my program from using normal pointers to classes A, ... typedef A * APtr;
2
1790
by: David Trimboli | last post by:
If you look at http://www.trimboli.name/klingon/, you'll see that the headers on the page are displayed in small-caps. Usually, this is desired. However, the header "may'vaD ghuHmoH QoQ"* is surrounded by <span lang="tlh"> ("tlh" for "tlhIngan Hol"), and I have put a declaration of "font-variant: normal" in the main stylesheet. I can't figure out why the Klingon title is still in small-caps. I want all Klingon phrases to appear in normal...
3
5018
by: PCHOME | last post by:
Hello, Given a mean, standard devaition and the CDF value, I would like to calculate the inverse of a normal distribution. I found this function "double gsl_cdf_gaussian_Pinv (double P, double sigma)" in the gsl library, but I do not know how to use it ? By any chance, any of you have tried this or do you have an example to help me out. Thank you for your help and time. regards.
1
1356
by: Deane | last post by:
I've run into this problem on many occasions -- I need to have the server side form tag on my Web form, of course. But I also need to have *another* form on the page that posts to a URL totally out of my control. I can think of three situations off the top of my head. In one case, it was a login to the client's PeopleSoft system. In another, it was a PayPal form.
4
2960
by: K | last post by:
Hello everyone, I understand that urllib and urllib2 serve as really simple page request libraries. I was wondering if there is a library out there that can get the HTTP requests for a given page. Example: URL: http://www.google.com/test.html Something like: urllib.urlopen('http://www.google.com/
0
9706
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9577
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10315
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
10075
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9140
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
7615
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
6847
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
5519
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
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.