473,791 Members | 2,947 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JS Guru needed! Why doesn't this work?

My pages need to unfold gracefully even if Javascript is disabled, but
I can't get this to work?

Please help, Javascript Gurus!!

<noscript>
document.write( '<span class=warning>< b>Warning</b>: You must enable
javascript for this page to work properly!</span>')
</noscript>

Thanks so much,
Ann

Nov 23 '05
13 1354
VK said the following on 11/21/2005 12:40 PM:
Randy Webb wrote:
<noscript>
<span class="warning" >I do not have a clue how to make my page work with
javascript disabled so you must come back with a script enabled browser
to see a page that probably isn't worth seeing to start with</span>
</noscript>

<noscript>
<span class="warning" >
My web application is based heavily on JavaScript. I have no idea why
did you turn JavaScript off, but you have to turn it on again to use my
application. I personally have no intention to make two equivalent
versions of my application: one for normal visitors, other one for few
dumb a** like you. Othervise what use JavaScript at all? So I'm affraid
this is your step to make.
</span>
</noscript>

I dend to believe that this warning text is much better.


Nothing wrong with having a JS heavy web-app. Just make it so that
non-JS doesn't get to it without some direction action from the user.

The problem with this part of your statement:

<quote>
I personally have no intention to make two equivalent versions of my
application: one for normal visitors, other one for few dumb a** like you.
</quote>

Is that you still seem to think you have to make 2 versions of
everything when you don't.

But, if you will tell me how to enable Javascript on my non-JS Cell
Phone Browser that is under 3 months old, you may have a chance of
changing my mind about non-JS browsers.

And my cell phone is not the only place where you may run into non-JS
browsers where the user can't change the settings.

Second:
If you have to ask "Otherwise what use is Javascript at all", then you
shouldn't be using Javascript to start with.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 23 '05 #11
VK

Randy Webb wrote:
The problem with this part of your statement:
<quote>
I personally have no intention to make two equivalent versions of my
application: one for normal visitors, other one for few dumb a** like you.
</quote>
Is that you still seem to think you have to make 2 versions of
everything when you don't.
Then I must be missing the ability to read between the lines, because
the statement which caused my polemics was:

<quote>
I do not have a clue how to ***make my page work with
javascript disabled*** so you must come back with a script enabled
browser
to see a page that probably isn't worth seeing to start with
</quote>

By reading it in the conventional English I understand it as: "My page
cannot work == produce the intended user experience without JavaScript
enabled. I am a bad developer."

This leads me to a conclusion that any web solution has to be endorsed
first by a fully equivalent server-side solution (in case if the
scripting is disabled). And only then you may start to develope a
client-side based equivalent.

This leads me to the question why bother at all to make a client-side
solution is you already have a server-side one?

This leads me to the conclusion that besides some really primitive form
helpers client-side scripting should be avoided at all.

Please mark the logical failure in this sequence (if any).

My personal position is that client-side scripting is not anymore an
add-on to the browsing experince. It is an integral part of such
experience like online forms or graphics support. You can disable
JavaScript if you really want. You can disable form submission,
graphics support, CSS support, SSL support, install MS-DOS version of
Lynx, make your own browser etc. etc.
This is your freedom of choice, *but* you shouldn't bother anyone else
with your freedom issues as well as anyone should be bothered with your
ideas of self-expression.

You want to drive - you need a car. You want to play Quake - you need a
computer. You want to get an adequate browsing experience - you have to
use a standard compliant browser or IE with reasonnable security
settings. You want an omlet - you have to break the eggs.
But, if you will tell me how to enable Javascript on my non-JS Cell
Phone Browser that is under 3 months old, you may have a chance of
changing my mind about non-JS browsers.


PDA and cellphones are all different issue. The current slogan "Get the
same pages in the same way in your cellphone" is a pure propaganda from
cellphone producers. It is called "aggressive advertisement" ;-)
Many web-portals are getting slow on my test laptop 260MGz / 96Mb The
idea that anyone may manage to have full and quick emulation of say IE
6.0 on a low-energy ARMS processor with 32/64 Mb available is ...
non-adequate.
It's all the question of the crutial mass. As soon as it was reached
for GPRS cellphones, WML language and WML site development became
requested. Now any respectable web-service has a WML mirror.
Then the crucial mass of new generation of web-phones will be reached,
a scaled down, cell-phone adjusted HTML/XML version will become a must
either.

You personally just paying the price of being between the first users
of a new software / hardware. They are always paying the highest price
and they are getting all bugs, products recalls and other setup
troubles ;-)

Nov 23 '05 #12
On Mon, 21 Nov 2005 13:48:06 -0500, Michael Winter wrote
(in article <GD************ ******@text.new s.blueyonder.co .uk>):
On 21/11/2005 17:40, VK wrote:

[snip]
I personally have no intention to make two equivalent versions of my
application: one for normal visitors, other one for few dumb a** like
you.


Has it occurred to you that you're the only regular poster to this group
that actually believes that two versions would be necessary? Another
situation where you're right, and everyone else is wrong, perhaps?

You made a similar statement about a month ago, and I tried to explain
that it was nonsense then, too. Evidentially, the notion of graceful
degradation hasn't sunk in yet.

[snip]
I dend to believe that this warning text is much better.


You are clearly beyond help. It's a shame, but a situation that I,
personally, am tired of dealing with.


Not too tired to snipe, however.

Nov 23 '05 #13
VK wrote:
<snip>
<quote>
I do not have a clue how to ***make my page work with
javascript disabled*** so you must come back with a
script enabled browser to see a page that probably
isn't worth seeing to start with
</quote>

By reading it in the conventional English I understand
it as: "My page cannot work == produce the intended user
experience without JavaScript enabled. I am a bad developer."
Yes, where 'intended' means behaviour in accordance with the design and
sufficient for the task. Such designs are possible so it is reasonable
to question why that are not achieved when they are not achieved.
Shortcomings on the part of the developer are a reasonable hypothesis in
the absence of other information.
This leads me to a conclusion that any web solution has to
be endorsed first by a fully equivalent server-side solution
(in case if the scripting is disabled). And only then you may
start to develope a client-side based equivalent.
You seem to have a real hang-up with doing everything twice. Doing
things twice is a seriously bad idea because it is inevitably expensive.
An integrated design with a suitably layered architecture can achieve a
totally reliable design with little or no extra coding time given to
accommodating javascript incapable/disabled browsers.
This leads me to the question why bother at all to make a
client-side solution is you already have a server-side one?
You wouldn't be making a client side 'solution'. Whatever happens you
are going to need a back end of some sort to do anything worth wile so
all the client-side code was never going to be more than a GUI. HTML can
provide a workable GUI, and then client-side scripting can transform it
(in virtually any way imaginable).
This leads me to the conclusion that besides some really
primitive form helpers client-side scripting should be
avoided at all.
Only because you cannot understand how javascript can be used to
enhance, and indeed radically transform, a web page (and its GUI)
without introducing any dependency upon client-side scripting. See:-

<URL: http://www.litotes.demon.co.uk/js_info/pop_ups.html >

- with and without scripting enabled.
Please mark the logical failure in this sequence (if any).
You are looking for an excuse (any excuse) for never trying. But the
question is not how little can be gotten away with (a quick survey of
the Internet as it is will tell you that), the question of interest is
what can be achieved, and how it might best be achieved.
My personal position is that client-side scripting is not
anymore an add-on to the browsing experince.
Your opinion is of little worth. Web sites, web applications and so on,
have a purpose. As a professional developer is would be your task to
know how to best achieve that purpose. Once you know and fully
understand what can be achieved you will find yourself in the best
possible position to make informed judgements about how to achieve the
required purpose.

Your position is that if the purpose cannot be achieved without
client-side scripting running on one or two configurations or one or two
browsers what meat your personal standards then you are not going to
even try. It is a very low standard and so relatively easy for a
programmer as poor as you to achieve, but it isn't necessarily in the
best interests of whoever may be paying you for your inferior creations.
It is an integral part of such experience like online forms
or graphics support. You can disable JavaScript if you really
want. You can disable form submission, graphics support, CSS
support, SSL support, install MS-DOS version of Lynx, make your
own browser etc. etc. This is your freedom of choice, *but*
you shouldn't bother anyone else with your freedom issues as
well as anyone should be bothered with your ideas of
self-expression.
And in e-commerce how much good does it do to be laming the user for
your inability to take money off them.
You want to drive - you need a car. You want to play Quake -
you need a computer. You want to get an adequate browsing
experience - you have to use a standard compliant browser
or IE with reasonnable security settings. You want an omlet
- you have to break the eggs.
And if you want to sell things you want a shop that everyone can get
into. If you want to make money form advertising you want as many people
as possible to see those adverts, and so not only get in in the first
place but keep coming back. If you want a good search engine ranking you
want a site that can be navigated without javascript. And so on.

If the user, any user, can be accommodated at no additional cost or
effort then getting up in arms because they don't want to (or cannot)
use your preferred browser can only detract from the potential of a web
site for no good reason.
But, if you will tell me how to enable Javascript on my
non-JS Cell Phone Browser that is under 3 months old,
you may have a chance of changing my mind about non-JS
browsers.


PDA and cellphones are all different issue. The current
slogan "Get the same pages in the same way in your cellphone"
is a pure propaganda from cellphone producers. It is called
"aggressive advertisement" ;-)

<snip> You personally just paying the price of being between the
first users of a new software / hardware. They are always
paying the highest price and they are getting all bugs,
products recalls and other setup troubles ;-)


There you go again, blame the user when they suffer from your
incompetence and suggest people create yet another version of their web
site when a single version written to take advantage of the
interoperabilit y that has been designed into the technologies used on
the web is capable of accommodating small mobile devices as easily as
desktop browsers.

Richard.
Nov 23 '05 #14

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

Similar topics

8
2258
by: Gabriel | last post by:
Hello everyone. If you were to code a secure membership system in PHP using MySQL with the follwing features: * a signup function where the user gets an email with a random password * passwords stored encrypted in database * login-system * password recovery tools * a system for secure-cookies
11
3099
by: Mike Cox | last post by:
After writing an article trashing java, and C++, notable LISP guru Paul Graham is getting roasted on slashdot. Apart from AutoCAD and Emacs, what has LISP done anyway? Most real work is done in C++ or C in the case of systems development. Perl is useful, but only for dynamic web content or simple sysadmin scripts. Most slashdotters think the same! Some are comparing Graham to Eric S. Raymond for his snobery. LISP's era ended when...
2
2706
by: rmn | last post by:
Hi, I'm looking for the translation betwen the color spaces, but I must be mistaken with the methods to use, losing the values. Please, I need a little help of a "coloured guru". ----------------------------------------------------- import java.awt.*; import java.awt.image.ColorModel; import java.awt.color.ColorSpace; .... ....
36
3459
by: Dmitriy Iassenev | last post by:
hi, I found an interesting thing in operator behaviour in C++ : int i=1; printf("%d",i++ + i++); I think the value of the expression "i++ + i++" _must_ be 3, but all the compilers I tested print 2.
4
2935
by: Accolo1 | last post by:
Help we are looking for this person, do you know them? William wjohnson@accolo.com Title: BEA WebLogic Portal Guru Job #: 03-04468 Check the pulse of your career! Evolve our eCommerce web portal centra nervous system with your advanced knowledge of BEA WebLogic portal an application servers, and J2EE. Using advanced open architectur
4
298
by: Marc Lawson | last post by:
Hi I consider myself a VB6 guru, but don't have much experience with VB.NET. I really want to get ramped up, but kind of don't know where to start Any suggestions on good books, sites, or sample code that would help Thanks Marc
9
1481
by: Dan W. | last post by:
I'm trying to resolve a disagreement between friends --Digital Mars and BOOST-- about what the precompiler should do in a given situation: The problem arose when I was trying to compile a boost example program with the DM compiler, and the name of a file which was put together by a set of macros, ended up as, ....\...\list10 .cpp vs. ....\...\list10.cpp
3
1474
by: Michael Suess | last post by:
Hi, please feel free to correct me if this is the wrong group to ask this question. I have a blog about parallel programming and concurrency (http://www.thinkingparallel.com if you are interested). I would like to do some interviews with the so-called "parallel programming gurus" of our time and ask them only 10 short questions about their particular parallel programming system. I have come up with the following list of people (in no...
16
5907
by: Singulus | last post by:
Hello all, I've searched for similar threads, I've found some bit of useful info here and there, but nevertheless I want to post my questions...So, how can I (we, in fact the forum can benefit from the discussion, this is the point here) become C++ gurus? I have 5 years of working experience with C/C++, I know that this can be very ambiguous thing, but anyway...I've come to the point where I want to structure and organize my further...
4
1619
by: Andrey | last post by:
Hi, I will be hiring a php guru to help us architect a highly scalable web site/web application; the problem is I am coming from Microsoft .NET world and not too much familiar with the platform. What kinds of questions would you advice to ask the person on the interview to see if he/she is: 1. Proficient with php 2. Proficient with MySQL (development, maybe some administration) 3. Has web app architecture skills and knows how to build...
0
9666
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
9512
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,...
0
10419
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10147
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
9987
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
5552
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4100
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3709
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2910
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.