473,406 Members | 2,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How can I make my webpage look good when JS is disabled?

I know that discussions of handling the user experience of those who
elect not to enable JS go back years, so I'll focus on two sites that
handle it in different ways. First of all, there is http://www.netflix.com/
-- a page that looks great with or without JS. Then there is
https://www.agedwards.com/ageconnect/Login -- which looks like it was
put together by a kid unless JS is enabled.

I've looked at the source for both pages, but I'm new to JS and lack
the experience to see what specifically was done by the people at
Netflix to make their page look so good when JS is blocked. Can
anyone help me with this? Many thanks to anyone who does.

Mar 28 '07 #1
7 1744
whitesmith wrote:
I know that discussions of handling the user experience of those who
elect not to enable JS go back years, so I'll focus on two sites that
handle it in different ways. First of all, there is
http://www.netflix.com/ -- a page that looks great with or without
JS. Then there is https://www.agedwards.com/ageconnect/Login -- which
looks like it was
put together by a kid unless JS is enabled.

I've looked at the source for both pages, but I'm new to JS and lack
the experience to see what specifically was done by the people at
Netflix to make their page look so good when JS is blocked. Can
anyone help me with this? Many thanks to anyone who does.

I assume the standard wisdom is "Don't use js for anything beyond a few
frills that your page can easily do without". Your second link above is
clearly not following that strategy.

With so many pages using Ajax these days you might as well just have a
non-js version of the page that says "sorry, this page is not going to work
for you". Obviously the target audience of the page is a large factor in
how you handle it.

Mar 28 '07 #2
On 28 Mar, 20:40, "whitesmith" <apasse...@hushmail.comwrote:
I know that discussions of handling the user experience of those who
elect not to enable JS go back years, so I'll focus on two sites that
handle it in different ways. First of all, there ishttp://www.netflix.com/
-- a page that looks great with or without JS. Then there ishttps://www.agedwards.com/ageconnect/Login-- which looks like it was
put together by a kid unless JS is enabled.

I've looked at the source for both pages, but I'm new to JS and lack
the experience to see what specifically was done by the people at
Netflix to make their page look so good when JS is blocked. Can
anyone help me with this? Many thanks to anyone who does.
in general the easiest way to prevent js making any difference is to
code the site without it, and add on the js later, in an "unobtrusive"
manner.
These days computers are fast and you can have js parse the markup
after page load and add listeners to all the links, the forms, and
attach events to them, so that when js is enabled the page has the
bells and whistles that some want.

In general I hate asp.NET because by default it uses javascript with
postback rubbish, and so the site simply doesnt work without js. I
prefer to keep js off until I need it, and will put up with all kinds
of crap on the page provided it works, sometimes in order to get a
specific form to submit - which requires client validation for
instance - I will just type the javascript into the address bar, or
firebug console to override the local lack of functionality. I know
this makes me in the minority - but I hate the nonsense that seems to
be web2.0 and of course the privacy problems, I prefer to get what I
need and get out, rather than watch a whole load of pretty effects and
wait while firefox loads the next lot of leaky code into my aging
comps memory.

Mar 28 '07 #3
"whitesmith" <ap*******@hushmail.comwrote in message
news:11**********************@r56g2000hsd.googlegr oups.com...
>I know that discussions of handling the user experience of those who
elect not to enable JS go back years, so I'll focus on two sites that
handle it in different ways. First of all, there is http://www.netflix.com/
-- a page that looks great with or without JS. Then there is
https://www.agedwards.com/ageconnect/Login -- which looks like it was
put together by a kid unless JS is enabled.

I've looked at the source for both pages, but I'm new to JS and lack
the experience to see what specifically was done by the people at
Netflix to make their page look so good when JS is blocked. Can
anyone help me with this? Many thanks to anyone who does.
To start, use semantically correct markup. In whatever style you choose, make sure that
your markup lays the page out sequentially. Then you can apply your CSS to it to actually
"lay it out."

The number one thing you DO NOT want to do is document.write() entire pages, menus,
images, et cetera. Which is exactly what agedwards.com does. Just look at the footer.js
for example.

Another thing you can do is provide specific alternatives to content areas. For example,
if you rely on some fantastical JavaScript menu, provide an alternative one in a noscript
tag. Or better yet, use semantic markup, style it with CSS, animate it with JavaScript.
It will look spiffy without JavaScript in that fashion.

Now, about Netflix. I chose them as my DVD delivery guys, specifically because of how
nicely coded their JavaScript was (that is, it did not cause my browser to go ape).
However, they do rely on several aspects of JavaScript style as it were. The menus for
example lose their hover color change (for all browsers), you lose the ability to rate
DVDs, and a few other odds-and-ends.

They could easily use image maps for the stars rating system. They could easily code
links to have a display of 'block', maximize their 'width' in their containers and apply a
background-color change on :hover.

The thing is, you have to balance between what you want to offer and how important some of
these features are. Personally, I think they could do the image map thing, because they
can reuse it for each DVD. The links, same thing, really easy to implement.

Alright, enough babbling. That is my general $0.02.

-Lost
Mar 28 '07 #4
-Lost said the following on 3/28/2007 5:54 PM:

<snip>
Now, about Netflix. I chose them as my DVD delivery guys, specifically because of how
nicely coded their JavaScript was (that is, it did not cause my browser to go ape).
Are you serious? You picked a movie rental site after viewing the
scripting in the page? And based solely on that criteria? I would have
thought some sort of quality service would bear a part in the decision.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 28 '07 #5
"Randy Webb" <Hi************@aol.comwrote in message
news:I4********************@giganews.com...
-Lost said the following on 3/28/2007 5:54 PM:

<snip>
>Now, about Netflix. I chose them as my DVD delivery guys, specifically because of how
nicely coded their JavaScript was (that is, it did not cause my browser to go ape).

Are you serious? You picked a movie rental site after viewing the scripting in the page?
And based solely on that criteria? I would have thought some sort of quality service
would bear a part in the decision.
You know, I thought afterwards I should have explained more, but thought already that I
was babbling too much.

I tested Blockbuster (two week trial) and then Netflix (month trial). I was *never*
impressed with Blockbuster's service, or their site.

After one month on Netflix, on the 4 DVDs a month plan, I had watched 27 movies in my
month's trial. As an added bonus, I REALLY dug the site, and Firebug never issued
warnings about its pages, HTML Tidy only ever reports two warnings, et cetera.

Blockbuster on the other hand delivered to me only 5 movies in 2 weeks. I could have went
to the local Blockbuster (barely two miles from here), but I thought that defeats the
purpose of having DVDs mailed to me.

So, it was service, but I have an odd attraction to sites that make good use of
JavaScript.

-Lost
Mar 28 '07 #6
On 28 Mar, 23:25, "-Lost" <missed-s...@comcast.netwrote:
"Randy Webb" <HikksNotAtH...@aol.comwrote in message

news:I4********************@giganews.com...
-Lost said the following on 3/28/2007 5:54 PM:
<snip>
Now, about Netflix. I chose them as my DVD delivery guys, specifically because of how
nicely coded their JavaScript was (that is, it did not cause my browser to go ape).
Are you serious? You picked a movie rental site after viewing the scripting in the page?
And based solely on that criteria? I would have thought some sort of quality service
would bear a part in the decision.

You know, I thought afterwards I should have explained more, but thought already that I
was babbling too much.

I tested Blockbuster (two week trial) and then Netflix (month trial). I was *never*
impressed with Blockbuster's service, or their site.

After one month on Netflix, on the 4 DVDs a month plan, I had watched 27 movies in my
month's trial. As an added bonus, I REALLY dug the site, and Firebug never issued
warnings about its pages, HTML Tidy only ever reports two warnings, et cetera.

Blockbuster on the other hand delivered to me only 5 movies in 2 weeks. I could have went
to the local Blockbuster (barely two miles from here), but I thought that defeats the
purpose of having DVDs mailed to me.

So, it was service, but I have an odd attraction to sites that make good use of
JavaScript.

-Lost
I too reward companies that have made a decent stab at accessibility,
as well as showing that they value my profession enough to get someone
professional to do it, it makes me feel better about putting my
details in their DB! I cannot stand companies that just throw some
shite on the web and call it a site, perhaps I have a small rage
problem :) (and a few others probably)

Mar 29 '07 #7
using javascript only for your really need ;)

Mar 29 '07 #8

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

Similar topics

9
by: Steve | last post by:
Hello, I am writing a script that calls a URL and reads the resulting HTML into a function that strips out everthing and returns ONLY the links, this is so that I can build a link index of various...
8
by: Pete..... | last post by:
Hi all I am working on a log in script for my webpage. I have the username and the password stored in a PostgreSQL database. The first I do is I make a html form, where the user can type in his...
7
by: Matt Osborne | last post by:
Good afternoon all! I am wondering if it is possible to somehow host ASP.Net inside an executable or do something similar. I am wanting create a UI similar to that of TurboTax or Microsoft...
1
by: Morten Plathe | last post by:
Hi, Is there a way to override the shadowed (grey) backcolor of a textbox when the textbox is disabled for input (textbox.enabled = false) ? In some cases I want to have a custom backcolor when...
6
by: shivavrata | last post by:
Hi All, I want to transfer the data form webpage to any other own application which is running in backend.How i develop this web page. which technology is good for this or any particular protocol...
3
by: Mike | last post by:
Hi, Upon login into my application I stored user data (userid, ...) in a cookie to be used throughout the application. One particular form is very complicated that uses AJAX and many AJAX...
3
by: mycall | last post by:
I had a quick look but couldnt find much on this. What i have is a contiunous form with each row having an 'edit' button. By default all feilds have been set to disabled to stop the user...
0
by: Swoosh | last post by:
Hi All, I am using ASP.Net Webcontrol to emit some HTML. The control is either a HyperLink or LinkButton. When I disable the control (by setting the controlls Enabled property) the following...
6
by: Jetus | last post by:
Is there a good place to look to see where I can find some code that will help me to save webpage's links to the local drive, after I have used urllib2 to retrieve the page? Many times I have to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
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...
0
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...
0
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,...
0
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...
0
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...
0
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...
0
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...

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.