473,779 Members | 2,072 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 #1
13 1353
There is some paradox in your code...
If Javascript is disabled (or unavailable on "really old" browser), it
means it cannot execute any kind of JS.
And you're asking to execute some JS when there is no JS.uh ? :-)
Means :
<noscript>
<span class=warning>W arning, you must...</span>
</noscript>

Antoine

Nov 23 '05 #2
Giggle Girl said the following on 11/21/2005 10:30 AM:
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>


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

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

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.

Nov 23 '05 #4
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.

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Nov 23 '05 #5
VK

Michael Winter wrote:
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?


Dear Michael,

First of all let me make it clear that "dumb a**" in my previous post
was totally in the context of that humorous address to some user with
JavaScript disabled and it was not anyhow addressed to the post
readers. I believe it is rather clear but I'd like to make it even more
clear.

Secondly the statement that any page has to be functional with or
without JavaScript is indeed completely false and is not covered by the
"fall gracefully" requirement. The page should not crash the browser
and user should be always informed that some or all of the page
functionality is currently not available. This is all.

I cannot think of any situations when the page with JS enabled would
provide the same or comparable user experience as the same page without
JS enabled. Maybe only some really primitive form helpers (like setting
focus to the first form field).

But I can think of many famous and prospering web services which are
not functional w/o client-side scripting.

And some services (like Google Maps and Google Suggests) *are not
reproducible* by server-side-only solutions. They need either
client-side scripting or stay-alone application.

So yes, I know that a lot of people would like to see JavaScript /
JScript on its 10-years old place: as a toy which is nice to have but
OK to leave without. There are also some people who would like to keep
historical Books Of ECMA as all explaining source of information
forever.

They may want to think again what year is now and visit
<http://www.w3.org/2006/webapi/>

P.S. I see a new urban legend is growing here recently (I traced it
back to one a month old post):-
about JavaScript disabled in corporate environment for security
measures.

Personally (so not *officially*) in 5 years spent so far in the Bay
Area plus daily visits to San Jose I did not see one damn user with
disabled JavaScript/JScript. I also did not see yet one network admin
who would disable JavaScript as a *valid security measure*. That alone
would suffice to feel free to fire his a**, as a person who has no clue
what the security is about and how to handle it.

Nov 23 '05 #6
VK

VK wrote:
I cannot think of any situations when the page with JS enabled would
provide the same or comparable user experience as the same page without
JS enabled.


A metathese obviously :-)
Must be:

I cannot think of any situations when the page with JS disabled would
provide the same or comparable user experience as the same page with JS
enabled.

Nov 23 '05 #7
VK
Just another 2 minutes fresh sample of what I'm saying:

<http://groups.google.c om/group/comp.lang.javas cript/browse_frm/thread/c5b2b99752d293d 1/228d5767a24608b 6#228d5767a2460 8b6>

"you can't do this, it's server-side only"
"you can't do that, it's application only"

Big surprises are coming though... ;-)

Nov 23 '05 #8
On 21/11/2005 20:05, VK wrote:

[snip]
Secondly the statement that any page has to be functional with or
without JavaScript is indeed completely false
Would you care to venture a reason for why you think that is? Is that an
absolute statement on your part, or is there a hidden qualifier you
neglected to mention?
and is not covered by the "fall gracefully" requirement.
Yes, it is. By my definition, anyway, and the definition often (always?)
used in this group.
The page should not crash the browser
That isn't a consequence of designing for graceful degradation, that's
just competency.
and user should be always informed that some or all of the page
functionality is currently not available.
That isn't graceful. That's unmitigated failure.
[I cannot think of any situations when the page with JS disabled
would provide the same or comparable user experience as the same page
with JS enabled.]
Care to define "comparable user experience", and give an example
situation? As far as I know, "user experience" encompasses a few
qualities together: appearance, content, functionality, and usability.
If you can't think of any situations where the server cannot provide a
comparable experience, you mustn't be trying hard enough. The approach
taken will almost certainly be different and may even need to be broken
down into separate stages.

Not everything can be reproduced, but not everything needs to be.
But I can think of many famous and prospering web services which are
not functional w/o client-side scripting.
Good for them. Doesn't mean it's the right approach to take. If you
explained that the same thing could be provided to everyone, rather than
excluding some users (and potential income), I'd expect management would
agree, too.
And some services (like Google Maps and Google Suggests) *are not
reproducible* by server-side-only solutions.
Google Maps certainly can be. Movement of the map will be limited to
jumps using the controls to the top-left rather than dragging, but the
experience (as defined above) will be the same.

Google Suggests can't be, but that's one of those things that doesn't
need to be. I, and millions of others, have managed to use Google
without an auto-complete feature for years, so if Google Search
implemented this by default, it wouldn't matter if it was used or not as
long as the original behaviour was maintained.

[snip]
They may want to think again what year is now and visit
<http://www.w3.org/2006/webapi/>


Exactly what is the point you're trying to make? That the W3C are trying
to standardise some de facto and proprietary features? So what? That
doesn't mean that all users must suddenly switch to a browser that
implements client-side scripting and must enable that feature (a
ridiculous notion).

[snip]

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Nov 23 '05 #9
VK

Michael Winter wrote:
Google Suggests can't be, but that's one of those things that doesn't
need to be. I, and millions of others, have managed to use Google
without an auto-complete feature for years.


This statement alone shows the difference in our *positions* over this
question and their hardware incompatibility which no discussion may
remove.

I just wondering why did you limit yourselve by *millions* of people
who managed to live w/o Google Suggests?

Not so long ago *billions* of people managed to live w/o Internet and
the world did not crash because of it.

Nov 23 '05 #10

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
3097
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
3455
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
5906
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
9636
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
10306
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...
0
10139
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...
0
9931
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
8961
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...
0
6727
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
5504
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
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
3
2869
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.