473,394 Members | 1,765 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,394 software developers and data experts.

Supporting non-CSS browsers

Hi,

I have several parts of my page that are shown/hidden via javascript
controlling the "display" style.

I was contemplating what will happen on browsers that do not support
CSS (eg text browsers).

Most of the parts still work if shown, but one of them is a
confirmation "Are you sure?" type box. This will presumably get shown
regardless on a text browser which will cause confusion.

Do text browsers support the "display" property at all?
If not, then how can I detect CSS support so I don't include the
confirmation markup?

Thanks,
Lister

Jan 18 '07 #1
3 1662
"lister" <li************@hotmail.comwrote in message
news:11**********************@m58g2000cwm.googlegr oups.com...
Hi,

I have several parts of my page that are shown/hidden via javascript
controlling the "display" style.

I was contemplating what will happen on browsers that do not support
CSS (eg text browsers).
If you have syntactically correct and semantically adequate markup, then sure.

It is not a matter of how well CSS degrades unless you rely heavily on positioning or
whatnot. In those rare cases then your content appears in different contexts. Again, use
valid markup and you should be fine.
Most of the parts still work if shown, but one of them is a
confirmation "Are you sure?" type box. This will presumably get shown
regardless on a text browser which will cause confusion.
Is that a JavaScript confirm()? Or if you really mean something in CSS, why not test for
stylesheet support?
Do text browsers support the "display" property at all?
If not, then how can I detect CSS support so I don't include the
confirmation markup?
I have no clue, but would seriously doubt it. The entire purpose of a text only editor is
to display the content textually and um... what is the word for in order, beginning to
end?

Hope this helps.

-Lost
Jan 18 '07 #2
Is that a JavaScript confirm()?
No. It is markup that is displayed via javascript
Or if you really mean something in CSS, why not test for
stylesheet support?
That's sorta my question! :-)

Jan 18 '07 #3
<jg******@parascan.comwrote in message
news:11*********************@38g2000cwa.googlegrou ps.com...

Um... are you "lister"? If so...
>Is that a JavaScript confirm()?
No. It is markup that is displayed via javascript
Enclose your JavaScript within noscript and provide alternate content if JavaScript is
disabled.
> Or if you really mean something in CSS, why not test for
stylesheet support?
That's sorta my question! :-)
OK? Are you asking how to do this? (This is not a JavaScript newsgroup.)

If so, look into document.style.

-Lost
Jan 18 '07 #4

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

Similar topics

12
by: Nick Hounsome | last post by:
Can anyone tell me what the rational is for not supporting optional arguments. It is obviously a trivial thing to implement and, since C++ has them, I would not expect them to be omitted without...
35
by: salad | last post by:
I have an application written in MS-Access. It is a complete application that manages the day-to-day operations of a business. The program is nearly ready to be used in other customer sites. ...
399
by: =?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= | last post by:
PEP 1 specifies that PEP authors need to collect feedback from the community. As the author of PEP 3131, I'd like to encourage comments to the PEP included below, either here (comp.lang.python), or...
3
by: =?Utf-8?B?U29hcHk=?= | last post by:
Hi: I heard from a friend that Microsoft will no longer support XP. There is a sign-up page for those people who still use it and would like MS to continue supporting it. I don't know if this...
0
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...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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...

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.