By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,829 Members | 1,828 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,829 IT Pros & Developers. It's quick & easy.

Hiding HTML elements without using Javascript

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a

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

P: n/a
"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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.