checking out if their U-A/browser settings support JavaScript, java, ...

O

onetitfemme

..
Does anyone know of a smart way to do it?
..
There are plenty of users that don't support java, javascript and/or
AJAX's XMLHTTPRequest (people with handhelds, PDAs and ...) my app
would serve them basically the same page, but without the same
functionality
..
I am looking for ideas from people who have dealt with these issues.
..
Anyone?
..
Thanks
onetitfemme
 
R

Randy Webb

onetitfemme said the following on 4/4/2006 11:14 AM:
..
Does anyone know of a smart way to do it?

To do what?
..
There are plenty of users that don't support java, javascript and/or
AJAX's XMLHTTPRequest (people with handhelds, PDAs and ...) my app
would serve them basically the same page, but without the same
functionality

Have your non-JS version the page people visit first. Then, use
Javascript to redirect them to the JS version. If JS is not present,
then they get the non-JS version. Or, you simply take the non-JS version
and enhance it using JS so that it doesn't matter - 1 page. It is what
is referred to as "degrading gracefully".

As for Java, that is a different question all together and you will
probably get better advice on Java questions in comp.lang.java and it's
heirarchy.
 
D

Dr John Stockton

JRS: In article <[email protected]>, dated
Tue, 4 Apr 2006 15:31:54 remote, seen in
Randy Webb said:
Have your non-JS version the page people visit first. Then, use
Javascript to redirect them to the JS version. If JS is not present,
then they get the non-JS version. Or, you simply take the non-JS version
and enhance it using JS so that it doesn't matter - 1 page. It is what
is referred to as "degrading gracefully".

UNTESTED :

ISTM that one can write a small page that expects to be called as
thispage.htm?thatpage.htm .

Page index.html uses javascript to call thatpage.htm immediately, and if
thatpage.htm is not supplied it likewise calls index.htm, perhaps after
a second's delay.

It also contains HTML text saying :-

"Some of my pages need javascript, which you do not have enabled. For
the index page, <a href="index.htm">select</a>.

It could also contain a META redirecting to index.htm after one or more
seconds.

The above is related to my "Frame This" code (frames-4.htm).
 
R

Randy Webb

Dr John Stockton said the following on 4/5/2006 11:14 AM:
JRS: In article <[email protected]>, dated
Tue, 4 Apr 2006 15:31:54 remote, seen in

UNTESTED :

ISTM that one can write a small page that expects to be called as
thispage.htm?thatpage.htm .

Page index.html uses javascript to call thatpage.htm immediately, and if
thatpage.htm is not supplied it likewise calls index.htm, perhaps after
a second's delay.

That is very possible and not that difficult to implement. But unless
thatpage.htm is used as a parameter to the page, whats the point if you
are going to redirect to another page without it. Two different pages
based on a parameter implies the parameter means something?
It also contains HTML text saying :-

"Some of my pages need javascript, which you do not have enabled. For
the index page, <a href="index.htm">select</a>.

It could also contain a META redirecting to index.htm after one or more
seconds.

META redirects can be explicitly disabled in IE6.
The above is related to my "Frame This" code (frames-4.htm).

There is no need to make it so complicated though as it is simple.
Make the index.html page the non-JS version and in that page have a
simple script snippet:

<script type="text/javascript">
top.window.location='pageWithJSRequired.html';
</script>

Then, the non-JS gets the non-JS version and the JS people get the JS
version.
 
D

Dr John Stockton

JRS: In article <[email protected]>, dated
Wed, 5 Apr 2006 20:26:04 remote, seen in
Randy Webb said:
META redirects can be explicitly disabled in IE6.

So those who choose to use IE6 and choose to disable META will need to
select the link provided. That's no reason to make everybody else do
it.
There is no need to make it so complicated though as it is simple.
Make the index.html page the non-JS version and in that page have a
simple script snippet:

<script type="text/javascript">
top.window.location='pageWithJSRequired.html';
</script>

Then, the non-JS gets the non-JS version and the JS people get the JS
version.

No; both get the non-JS version and those using script also get the
script version. My aim was to minimise the amount of download that the
end users did not end up reading.
 
R

Randy Webb

Dr John Stockton said the following on 4/6/2006 3:28 PM:
JRS: In article <[email protected]>, dated
Wed, 5 Apr 2006 20:26:04 remote, seen in

So those who choose to use IE6 and choose to disable META will need to
select the link provided. That's no reason to make everybody else do
it.

You are correct but I still don't see a need/use for a META redirect.
No; both get the non-JS version and those using script also get the
script version. My aim was to minimise the amount of download that the
end users did not end up reading.

You create the non-JS version. Make it work properly. Then, you enhance
it with scripting and include all your scripting in external files.

The non-JS get a working page.
The JS get a working page.
Nobody downloads more than they need to.

Why mess with a META redirect?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top