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 13 1313
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>Warning, you must...</span>
</noscript>
Antoine
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.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
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.
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.
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.
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.
Just another 2 minutes fresh sample of what I'm saying:
<http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/c5b2b99752d293d1/228d5767a24608b6#228d5767a24608b6>
"you can't do this, it's server-side only"
"you can't do that, it's application only"
Big surprises are coming though... ;-)
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.
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.
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.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
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 ;-)
On Mon, 21 Nov 2005 13:48:06 -0500, Michael Winter wrote
(in article <GD******************@text.news.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.
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
interoperability that has been designed into the technologies used on
the web is capable of accommodating small mobile devices as easily as
desktop browsers.
Richard. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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
*...
|
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...
|
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"....
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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....
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |