473,803 Members | 3,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Do viewers have JavaScript?

I am making a page that will depend on JavaScript.
Is this a problem: the viewers' browser not
running JavaScript?

I did a quick survey of the top of one list of
Top 500 web sites in popularity -- my javascript
turned off. Almost no problem in simply viewing
the pages but I did *not* test any dynamics.

JavaScript was used for some purpose on almost
all the pages. Only two out of thirty explicitly
demanded that javascript be turned on.

QUESTION: Am I running any risk with a page that
*depends* on javascript for informative pop-up
windows?

Mason C
Jul 23 '05 #1
22 2814
Mason A. Clark <ma*******@THIS ix.netcom.comQQ Q> wrote:
QUESTION: Am I running any risk with a page that
*depends* on javascript for informative pop-up
windows?


Yes, starting from the fact that even if JavaScript is enabled, the
browser might have been configured not to open pop-up windows.
Even Google toolbar does that. However this depends on _how_ you try to
create pop-up windows.

Any _automatic_ pop-up windows will make lots of people leave your site
and will be prevented by many programs and settings.

An _optional_ pop-up window, i.e. a link that opens in a new window, is
less risky and can be fairly safe if you first create a normal link,
with href="...", and then add the JavaScript code that overrides normal
link processing and opens a new window with specific properties. But
then you would also need to check whether new windows are allowed in
JavaScript (if(window.open ) ...). Even then, some pop-up prevention
might hit you.

Do you really think you need pop-up windows so badly? What's wrong with
being just informative: include the information onto the page itself,
or behind a link on another page.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #2
Mason A. Clark wrote:
QUESTION: Am I running any risk with a page that
*depends* on javascript for informative pop-up
windows?


IMO yes. I think your pages should be *enhanced* with Javascript, but
somehow still work with Javascript turned off. With Javascript turned
off, an extra roundtrip to the server would be needed while with client
side Javascript it can be handled client side without the round trip.

For example, take an expanding/collapsing outline menu. With Javascript
enabled, you can just show/hide subsections with CSS and switching
classes with Javascript, while without Javascript, the server should
show the partially expanded sections, and clicking on such a link would
reload a slightly modified page to show or hide a subsection. I hope I
make some sense.

--
Bart.
Jul 23 '05 #3
Mason A. Clark wrote:
I am making a page that will depend on JavaScript.
Is this a problem: the viewers' browser not
running JavaScript?
Yes, if the page *depends* on JavaScript, then it will likely not remain
accessible to any browser without JavaScript support.
I did a quick survey of the top of one list of
Top 500 web sites in popularity -- my javascript
turned off. Almost no problem in simply viewing
the pages but I did *not* test any dynamics.
Then, based on that statement, those sites did not *depend* on
javascript, but merely used it to enhance the site. JavaScript should
always be used in a way that benefits those with javascript support, but
does not negatively affect those without.
JavaScript was used for some purpose on almost
all the pages. Only two out of thirty explicitly
demanded that javascript be turned on.
Such practices are evil for the very reason such messages appear. If
you visited my site and I demanded that you configure *your* browser the
way *I* liked, would you really stick around for more?
QUESTION: Am I running any risk with a page that
*depends* on javascript
Yes. You will either turn away or at least annoy a fraction of your
users by requireing JavaScript to be enabled for some features to be
accessible.
for informative pop-up windows?


You will annoy even more users by using popup windows.

You should read this brief tutorial about how and why you should use
unobtrusive javascript. I don't know if it will contain any material to
address your particular requirements, but it does contain a very good
overview of good scripting practices.
http://www.onlinetools.org/articles/...ivejavascript/

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Jul 23 '05 #4
> Am I running any risk with a page that
*depends* on javascript for informative pop-up
windows?


As others have said it is best to not depend on Javascript and things
like

<a href="foo" onclick="openfo owindow(); return false;">...

mean that you can normally offer a fallback with little pain. Also
look up <NOSCRIPT> if you don't know about it. I have this:

<noscript>
<link rel="stylesheet " type="text/css" src="noscript.c ss">
</noscript>

in the header, which allows me to display:none the bits of the page
that rely on scripts. Note that this NOT legitimate HTML but either
works or is ignored by all the browsers that I've seen. (Any comments
anyone?)

How many of your visitors will be inconvenienced because you reply on
Javascript does depend on the type of site that it is and the
demographics of the visitors. By coincidence this morning I have been
plotting some graphs of this sort of thing for one of my sites and I've
been suprised to find that not a single user has Javascript disabled!
It's well worth doing a study like this because the results might not
be what you were expecting or what others told you. For example,
although the effort that I've put into making the site work when JS is
disabled may be partly wasted[*], I've also found that users have much
smaller screens than I expected. Only a tiny fraction seem to have a
1280x1024 monitor (and practically all of them are Mac users) with more
than a third using a window smaller than 900x500! Of course the site
is fluid enough to work in these small windows, but they weren't what I
had in mind when I designed it. Your visitors will probably be
different, so I encourage you to measure them.
[*] Of course the largest category of visitors who don't have JS
enabled are search engines, and making sure that they can reach all of
the content is important.

<RANT>As for pop-up windows, forget them. In the way that spam has
ruined email, popups are ruined by their use for advertising. Don't
design a site that relies on users doing things by email: too many of
them will give bogus email addresses because they're afraid of spam, or
they'll have whitelist-based filtering so your message (containing
their new password for your site or whatever) will never reach them, or
it will reach them but they'll have forgotten that they signed up and
report you to someone who'll blacklist you. The same applies to
popups: you may think that a popup is the right thing to use, and I
might agree in principle, but the whole concept is now so tarnished in
users' minds that you might as well be selling penis-pills. Your
friendly popup message saying "Are you sure you want to close, you
haven't saved it?" will get trapped and converted into "THIS NASTY SITE
TRIED TO OPEN AN OBNOXIOUS ADVERT FOR PENIS PILLS WOULD YOU LIKE TO
COMPLAIN ABOUT THEM TO THE FTC???" by the user's browser.
Aaarrrgghh!!!!</RANT>

--Phil.

Jul 23 '05 #5
me
"Mason A. Clark" <ma*******@THIS ix.netcom.comQQ Q> wrote in message
news:84******** *************** *********@4ax.c om...
I am making a page that will depend on JavaScript.
Is this a problem: the viewers' browser not
running JavaScript?

I did a quick survey of the top of one list of
Top 500 web sites in popularity -- my javascript
turned off. Almost no problem in simply viewing
the pages but I did *not* test any dynamics.

JavaScript was used for some purpose on almost
all the pages. Only two out of thirty explicitly
demanded that javascript be turned on.

QUESTION: Am I running any risk with a page that
*depends* on javascript for informative pop-up
windows?

Mason C


I see no reason not to use JavaScript but I would not use windows that popup
automatically via JavaScript. Popup windows are IMO persona non grata to
most users. If you fear that some users may not be able to access items in
your pages that depend on JavaScript then use the following tag directly
below the JavaScript to alert them to this possibility:
Good Luck,
me

<NOSCRIPT>Thi s will not work without JavaScript enabled. Please enable
JavaScript, thank you!</NOSCRIPT>
Jul 23 '05 #6
"Mason A. Clark" wrote in comp.infosystem s.www.authoring.html:
I am making a page that will depend on JavaScript.
Is this a problem: the viewers' browser not
running JavaScript?


Yes, it's a problem.

It's one thing to make a page where the experience is enhanced with
Javascript. But to make it _depend_ on Javascript is a really bad
idea.

You say you visited some popular sites and they looked okay. The #1
misuse of Javascript, in my opinion, is in navigation. if you tried
navigating thoise sites without Javascript you would have found
some of them entirely unusable because the clueless Web dee-zigh-
nurrs required Javascript.

Here's a typically egregious example:
http://www.michaelstevenstech.com/xpfaq.html
The links do in fact have href= attributes, but they don't work
because he depends on Javascript rewriting them on the fly. Or
something. Net effect: an unusable site, and inaccessible
information.

(This URL was posted in a Windows XP help group. I did draw the
problem to the page author's attention.)

It's particularly disappointing that so many people go out of their
way to create contrtions like this. In effect, they spend massive
amounts of effort to make their sites less usable. "Oh, what fools
these mortals be!"

--

Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
Jul 23 '05 #7
me wrote:
<NOSCRIPT>Thi s will not work without JavaScript enabled. Please enable
JavaScript, thank you!</NOSCRIPT>


If you regularly surfed with JS disabled, do you realise how irritating
that would get? Why should a user adjust their browser settings to
match yours in any way whatsoever? Also, noscript is intended to
provide suitable alternate content for users without JS, not point out
their limitiations.

That example is just as bad as:

<img ... alt="Please turn on images.">

<noframes>
<p>Your browser does not support frames, please upgrade to IE 5.</p>
</noframes>

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Jul 23 '05 #8
Lachlan Hunt wrote:
me wrote:
<NOSCRIPT>Thi s will not work without JavaScript enabled.
Please enable JavaScript, thank you!</NOSCRIPT>


If you regularly surfed with JS disabled, do you realise how
irritating that would get? Why should a user adjust their
browser settings to match yours in any way whatsoever? Also,
noscript is intended to provide suitable alternate content for
users without JS, not point out their limitiations.

<snip>

The proposal gets even worse when you consider that there are almost no
browser scripts that are exclusively dependent on scripting support
alone. That is, they almost all require on the browser in question
implementing some specific features in its object model. As browser
object models differ considerably in what they implement (and are more
or less dynamic in how they respond to manipulation of that object
model) there is every chance that at least some visitors willing and
capable of enabling javascript to view the page will still not
experience an actively functional script. Which will make the author of
the page look very foolish for making a demand and then not delivering
when the visitor satisfies it.

Richard.
Jul 23 '05 #9
me
"Lachlan Hunt" <sp***********@ gmail.com> wrote in message
news:42******** **************@ per-qv1-newsreader-01.iinet.net.au ...
Why should a user adjust their browser settings to
match yours in any way whatsoever?


Do you think I will adjust my opinion to suit you in any way whatsoever?
Signed,
me
Jul 23 '05 #10

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

Similar topics

3
1758
by: ted holden | last post by:
Dumb question... Does PHP have any facility for utilizing flash, shockwave, quicktime, or any such media viewer from inside some browser application?
0
1528
by: _Doug | last post by:
I'm trying to do a simple Crystal report from a simple text data base, and get: Access to the path "C:\\Program Files\\Microsoft Visual Studio .NET\\Crystal Reports\\Viewers\\dynamic_images" is denied.
2
2377
by: jason | last post by:
Hello, Does anyone have any experience with 3rd Party Crystal Report viewers? I'm looking for a viewer that allows me to view reports in our web app without having crystal reports installed on the app server. Does such a thing exist? I also need the rpt files to be independant of saved data and db connection info. Thanks in advance. JS
10
9048
by: hughestroop | last post by:
I have updated my CSS and if you view the main page with the old css cached, it breaks the page. Is there any way to force viewers that have the old css cached to get the new css? Our viewers are NOT tech savvy, and wouldn't know what a "hard refresh" is, nor that it needed to be done.
0
870
by: sriii | last post by:
Hi All, I want to generate a report for one application by using the Active Reports. Any body please Explain me the What is the use of viewers in details. Thanx in Advance.
0
9703
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
10317
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
10300
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
10069
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
9127
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
7607
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
6844
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
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2974
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.