Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > HTML Query

Reply
Thread Tools

HTML Query

 
 
Ramon
Guest
Posts: n/a
 
      01-03-2009
Hi,

Does someone here knows if there exists a tag that can fold/hide text...
and when the user clicks it, the text will become visible.

Thanks
 
Reply With Quote
 
 
 
 
Neredbojias
Guest
Posts: n/a
 
      01-03-2009
On 03 Jan 2009, Ramon <> wrote:

> Hi,
>
> Does someone here knows if there exists a tag that can fold/hide
> text... and when the user clicks it, the text will become visible.
>
> Thanks


How would the user be able to click it when it's invisible?

--
Neredbojias
http://www.neredbojias.org/
http://www.neredbojias.net/
The road to Heaven is paved with bad intentions.
 
Reply With Quote
 
 
 
 
Els
Guest
Posts: n/a
 
      01-03-2009
Neredbojias wrote:
> On 03 Jan 2009, Ramon <> wrote:
>
>> Does someone here knows if there exists a tag that can fold/hide
>> text... and when the user clicks it, the text will become visible.

>
> How would the user be able to click it when it's invisible?


nitpick!

--
Els http://locusmeus.com/
 
Reply With Quote
 
Ramon
Guest
Posts: n/a
 
      01-03-2009
Neredbojias wrote:
> On 03 Jan 2009, Ramon <> wrote:
>
>> Hi,
>>
>> Does someone here knows if there exists a tag that can fold/hide
>> text... and when the user clicks it, the text will become visible.
>>
>> Thanks

>
> How would the user be able to click it when it's invisible?
>

What I meant is that you have something like this:
[+] Click here to see more information.

When the user clicks on the [+], he/she will see something like this:
[+] Click here to see more information.
Some text here that the user could not see
before -- thus invisible
Other text here ...

Is is possible in HTML?
 
Reply With Quote
 
Jukka K. Korpela
Guest
Posts: n/a
 
      01-03-2009
Ramon wrote:

>>> Does someone here knows if there exists a tag that can fold/hide
>>> text... and when the user clicks it, the text will become visible.
>>>
>>> Thanks

>>
>> How would the user be able to click it when it's invisible?


The answer to that question is obviously "by accident", though some people
may include the possibility of "by miracle".

> What I meant is that you have something like this:
> [+] Click here to see more information.
>
> When the user clicks on the [+], he/she will see something like this:
> [+] Click here to see more information.
> Some text here that the user could not see
> before -- thus invisible
> Other text here ...


It's generally useful to ask what you really want, instead of something
quite different. It is also a good idea to write a Subject line that gives
at least a subtle hint of a clue of an allusion to what the content is
about.

It's generally useful to present your content to users without hiding it in
elaborate ways that generally exhibit poor accessibility, poor usability,
and poor style. "Click here" is virtually always bad style.

> Is is possible in HTML?


No. You need to study an introduction to the basics of HTML if you had the
idea that it could be. HTML is poor lonesome data format, not a programming
language or even a style language.

Well of course it _is_ possible in the sense that "[+]" could be a link
pointing to a page that differs from the current one only so that there is
the additional content there (and the content after it is pushed downwards
of course). But that's hardly what you meant.

What people normally use to do things like you describe is a combination of
JavaScript and CSS; naturally there needs to be some marked-up data (i.e.,
HTML stuff) for them to play with. And sometimes people use just CSS
(playing on HTML of course), though then the user just mouses over instead
of clicking. It can be fun, to an author, but it's normally not useful.

--
Yucca, http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
Ramon
Guest
Posts: n/a
 
      01-03-2009
Jukka K. Korpela wrote:
> Ramon wrote:
>
>>>> Does someone here knows if there exists a tag that can fold/hide
>>>> text... and when the user clicks it, the text will become visible.
>>>>
>>>> Thanks
>>>
>>> How would the user be able to click it when it's invisible?

>
> The answer to that question is obviously "by accident", though some
> people may include the possibility of "by miracle".
>
>> What I meant is that you have something like this:
>> [+] Click here to see more information.
>>
>> When the user clicks on the [+], he/she will see something like this:
>> [+] Click here to see more information.
>> Some text here that the user could not see
>> before -- thus invisible
>> Other text here ...

>
> It's generally useful to ask what you really want, instead of something
> quite different. It is also a good idea to write a Subject line that
> gives at least a subtle hint of a clue of an allusion to what the
> content is about.
>
> It's generally useful to present your content to users without hiding it
> in elaborate ways that generally exhibit poor accessibility, poor
> usability, and poor style. "Click here" is virtually always bad style.
>
>> Is is possible in HTML?

>
> No. You need to study an introduction to the basics of HTML if you had
> the idea that it could be. HTML is poor lonesome data format, not a
> programming language or even a style language.
>
> Well of course it _is_ possible in the sense that "[+]" could be a link
> pointing to a page that differs from the current one only so that there
> is the additional content there (and the content after it is pushed
> downwards of course). But that's hardly what you meant.
>
> What people normally use to do things like you describe is a combination
> of JavaScript and CSS; naturally there needs to be some marked-up data
> (i.e., HTML stuff) for them to play with. And sometimes people use just
> CSS (playing on HTML of course), though then the user just mouses over
> instead of clicking. It can be fun, to an author, but it's normally not
> useful.
>


Thanks.
 
Reply With Quote
 
Bergamot
Guest
Posts: n/a
 
      01-03-2009

Ed Mullen wrote:
> Ramon wrote:
>>
>> Does someone here knows if there exists a tag that can fold/hide
>> text... and when the user clicks it, the text will become visible.

>
> http://markehansen.07x.net/FAQ.htm


if(document.layers)...

icky-poo!

--
Berg
 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      01-03-2009
Bergamot wrote:
>
> Ed Mullen wrote:
>> Ramon wrote:
>>>
>>> Does someone here knows if there exists a tag that can fold/hide
>>> text... and when the user clicks it, the text will become visible.

>>
>> http://markehansen.07x.net/FAQ.htm

>
> if(document.layers)...
>
> icky-poo!
>

Not sue how many Netscape 4.x users are still out their, but at least
they are using *object* detection of stupid user agent sniffing...I am
getting awful tired if PayPal's warning dialogs in their tools that my
browser is not supported "IE 5.5+ FF 1.0+ Safari 1.2+" while using
SeaMonkey 1.1.14

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      01-03-2009
Jonathan N. Little wrote:
> Bergamot wrote:
>>


>> if(document.layers)...
>>
>> icky-poo!
>>

> Not sue how many Netscape 4.x users are still out their, but at least


*sure*

> they are using *object* detection of stupid user agent sniffing...


The site's real error is that they have the text hidden by default in
the styling. It should be displayed and the via JavaScript upon loading
set to hide so that if the user has JavaScript disabled the content is
visible.

The Rule is JavaScript is option and the page should be usable without it.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
Ramon
Guest
Posts: n/a
 
      01-03-2009
Thanks Ed for your tips. It worked great!

Ed Mullen wrote:
> Ramon wrote:
>> Hi,
>>
>> Does someone here knows if there exists a tag that can fold/hide
>> text... and when the user clicks it, the text will become visible.
>>
>> Thanks

>
> You need javascript but there are lots of existing examples:
>
> http://markehansen.07x.net/FAQ.htm
>
> http://www.tjkdesign.com/articles/toggle_elements.asp
>
> Google text toggle for more.
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET won't retrieve query results that depend on union query Eric Nelson ASP .Net 5 02-04-2009 10:51 PM
Trying to query the Address table data of AdventureWorks database from Query Analyzer - need help! Learner ASP .Net 1 01-30-2006 08:58 PM
Build dynamic sql query for JSTL <sql:query> Anonymous Java 0 10-13-2005 10:01 PM
xpath query query David Gordon XML 2 05-18-2005 03:33 PM
CAML Query: Multiple Query Fields Issue Jon F. ASP .Net Web Services 0 05-12-2004 08:19 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57