473,396 Members | 2,018 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,396 software developers and data experts.

Hiding HTML elements without using Javascript

People,
Here's my situation:
1. I have a web browser component that does not support Javascript
(well it does, but we've disabled it)
2. I have to display some HTML in it, where the user has a link titled
"Hide|Show Options" that can hide/show a particular section of the
HTML.

I have not found a way to achieve it without using Javascript or any
other scripting language.

Is it possible to do this using pure plain HTML?

Thanks
Harsh

Jan 17 '06 #1
3 1856

ha******@tamaleresearch.com wrote:
People,
Here's my situation:
1. I have a web browser component that does not support Javascript
(well it does, but we've disabled it)
2. I have to display some HTML in it, where the user has a link titled
"Hide|Show Options" that can hide/show a particular section of the
HTML.

I have not found a way to achieve it without using Javascript or any
other scripting language.

Is it possible to do this using pure plain HTML?


Maybe, but it's probably not what you're looking for. Have your
"Hide|Show Options" link truly act and behave like a link. That is,
have the link go to another page that shows all the options.
Otherwise, there is no pure HTML way to achieve the effect you're
looking for.

For graceful degradation in your scenario, I would say it's perfectly
fine to have all the options being shown if javascript is not enabled.

Jan 18 '06 #2
"web.dev" <we********@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...

ha******@tamaleresearch.com wrote:
People,
Here's my situation:
1. I have a web browser component that does not support Javascript
(well it does, but we've disabled it)
2. I have to display some HTML in it, where the user has a link titled
"Hide|Show Options" that can hide/show a particular section of the
HTML.

I have not found a way to achieve it without using Javascript or any
other scripting language.

Is it possible to do this using pure plain HTML?


Maybe, but it's probably not what you're looking for. Have your
"Hide|Show Options" link truly act and behave like a link. That is,
have the link go to another page that shows all the options.
Otherwise, there is no pure HTML way to achieve the effect you're
looking for.


Make a pure link, like described above, to the same page, using a different
stylesheet.

Styylesheet-selection can be done on the server-side, depending on the url:
..../mypage.asp?howHidden=1 (or jsp or whatever)...

--
Dag.
Jan 18 '06 #3
Dag Sunde wrote:
Here's my situation:
1. I have a web browser component that does not support Javascript
(well it does, but we've disabled it)
2. I have to display some HTML in it, where the user has a link titled
"Hide|Show Options" that can hide/show a particular section of the
HTML.

I have not found a way to achieve it without using Javascript or any
other scripting language.

Is it possible to do this using pure plain HTML?


Maybe, but it's probably not what you're looking for. Have your
"Hide|Show Options" link truly act and behave like a link. That is,
have the link go to another page that shows all the options.
Otherwise, there is no pure HTML way to achieve the effect you're
looking for.

Make a pure link, like described above, to the same page, using a different
stylesheet.

Styylesheet-selection can be done on the server-side, depending on the url:
.../mypage.asp?howHidden=1 (or jsp or whatever)...

Or maybe a small frame or iframe, to avoid reloading the complete page?

--
Ian Collins.
Jan 18 '06 #4

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

Similar topics

12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
10
by: Chamomile | last post by:
I have been happily using array members as id's in my html code (either hand coded or generated by server-side script-php ) for some time. eg < input type='text' id='arrayItem' >< input...
4
by: Christopher Benson-Manica | last post by:
Obviously, compiliant browsers that encounter <script type="text/javascript"> <!-- // your script here // --> </script> will either execute the script or ignore it completely. However, we...
39
by: WindAndWaves | last post by:
Hi Gurus I have a page, which looks a bit like this: .... <body> <div ID=id1>................</DIV> <div ID=gsd>................</DIV> <div ID=ewd>................</DIV> <div...
3
by: Sam | last post by:
I wrote a script to show or hide items in an HTML list (<ul id="stuff">) depending on whether a list-item's CLASS attribute matches an input string (catString), which is chosen from a SELECT menu....
38
by: | last post by:
I have a script... ----- <SCRIPT language="JavaScript" type="text/javascript"> <!-- function makeArray() { for (i = 0; i<makeArray.arguments.length; i++) this = makeArray.arguments; } ...
5
by: Ben | last post by:
I have a form for data entry which is in a table. I have a select box to enter a customer name, which takes it's options from the customer database. I have a button to add a new customer. What I...
4
by: web_design | last post by:
I put this together from some other scripts I am using on a site. I'm trying to make a better email hiding script. It isn't working. Also, it causes Internet Explorer 6 SP2 to block the script...
7
by: MaryA | last post by:
Let me preface this with the fact that I am a newbie to HTML, XML and Javascript. Having said that, let me explain my dilemma: I am having a difficult time getting innerHTML to consistently...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.