473,549 Members | 3,099 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

contextual definition

I am looking for JavaScript examples on expanding contextual
definition. For example, you have a word like POP3 and the user click
on the word expanding it with the following contextual definition.

POP3 (POP3: A common protocol that is used to retrieve e-mail messages
from an Internet e-mail server.)

Sites like Microsoft use the technique throughout their site. I hope
to find the code and an explanation on its usage. Let me know if you
have any sources. Thanks!

Jul 23 '05 #1
3 1587


Robert Neville wrote:
I am looking for JavaScript examples on expanding contextual
definition. For example, you have a word like POP3 and the user click
on the word expanding it with the following contextual definition.

POP3 (POP3: A common protocol that is used to retrieve e-mail messages
from an Internet e-mail server.)

Sites like Microsoft use the technique throughout their site. I hope
to find the code and an explanation on its usage. Let me know if you
have any sources.


Use the proper markup (<acronym title="Post Office Protocol 3: a common
protocol that is used to retrieve e-mail messages
from an Internet e-mail server">POP3</acronym> and then you are able to
write some lines of script that insert the value of the title attribute
when the element is clicked:
http://www.faqts.com/knowledge_base/...html/aid/32124

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2
Thanks Martin for your reply.

Your suggestions led me in the right direction. But the method did not
accomplish the desired result. The Contextual definition should be
clickable; thus it should expand and retract. Using the example on
your link suggestion, the results were not predictable; in Mozilla it
expanded the contextual definition, yet did not retract it; in IE
6.0.2, it did not even expand. Maybe, I overlooked something in the
code.

My JavaScript knowledge is elementary. My inquiry serves my own
purpose in converting my troubleshooting notes to html. So I could
view it on any platform. I am not a developer who has the coding
knowledge to reverse engineer the code. Please let me know if you
could give explicit suggestions. Thanks again.
On Fri, 29 Oct 2004 14:29:05 +0200, Martin Honnen <ma*******@yaho o.de>
wrote:


Robert Neville wrote:
I am looking for JavaScript examples on expanding contextual
definition. For example, you have a word like POP3 and the user click
on the word expanding it with the following contextual definition.

POP3 (POP3: A common protocol that is used to retrieve e-mail messages
from an Internet e-mail server.)

Sites like Microsoft use the technique throughout their site. I hope
to find the code and an explanation on its usage. Let me know if you
have any sources.


Use the proper markup (<acronym title="Post Office Protocol 3: a common
protocol that is used to retrieve e-mail messages
from an Internet e-mail server">POP3</acronym> and then you are able to
write some lines of script that insert the value of the title attribute
when the element is clicked:
http://www.faqts.com/knowledge_base/...html/aid/32124


Jul 23 '05 #3


Robert Neville wrote:
Your suggestions led me in the right direction. But the method did not
accomplish the desired result. The Contextual definition should be
clickable; thus it should expand and retract. Using the example on
your link suggestion, the results were not predictable; in Mozilla it
expanded the contextual definition, yet did not retract it; in IE
6.0.2, it did not even expand. Maybe, I overlooked something in the
code.


Your original post only asked about expansion so I wrote an example
doing that, I have updated the FAQTS entry
(http://www.faqts.com/knowledge_base/...html/aid/32124) to allow
collapsing the explanation if the <abbr> or <acronym> element is clicked
again. As for IE the FAQTS entry clearly states that IE doesn't support
the <abbr> element so that with IE it is not possible to expand content
marked up with that tag (as there is no <abbr> element in the DOM tree
then on which events are fired).
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #4

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

Similar topics

4
1984
by: Dennis M. Marks | last post by:
Has anyone ever considered making a simulated contextual menu. I know that you can sometimes trap a right click or option click. Why not open up a window that would act as a menu when this happens? It would be a challenge to actually have existing contextual menu options along with your added ones. Any ideas on how to do this or has it been...
9
3737
by: Dave H | last post by:
Hello, I have a query regarding definition lists. Is it good practice semantically to use the dt and dd elements to mark up questions and answers in a frequently asked questions list, or FAQ? Here is an example of just such a usage: <dl class="faq"> <di>
3
2048
by: TheMartian | last post by:
Having fun with using contextual selectors with tables and links In this very simplified version of what I am doing, I want to apply a specific style to all <td> tags, and the <a> tag in a single table, without having to specify a class for each one. <div class='one'> <table> <tr> <td>some text</td>
2
16137
by: Squid Seven | last post by:
I have created a class that contains an instance of a second class. When i try to call a member function of the instance of the second class from a member function of the containing class, I get the following error message: Insufficient contextual information to determine type. I have generated the simplest sample I could come up with...
10
20837
by: Kobu | last post by:
My question is about the use and meaning of the terms "declaration" and "definition" as it pertains to the C language. I've read sources that mix the two up when talking about such things as setting aside storage for an object, defining/declaring a struct, parts of a function, referencing an external variable in another module. ...
0
1069
by: Pupkin | last post by:
Hi, Is there any kind of built-in control for a dropdownlist with a contextual text field option? For example: Choose one: This
2
3767
by: cartoper | last post by:
I am coming to VB.Net from C#. One feature I really like about C# is the yield contextual keyword. Here is what MSDN says about it: -------------- Used in an iterator block to provide a value to the enumerator object or to signal the end of iteration. It takes one of the following forms: yield return expression; yield break;...
2
1955
by: Vinay Sajip | last post by:
Some users of the logging package have raised an issue regarding the difficulty of passing additional contextual information when logging. For example, the developer of a networked application may want to log, in addition to specifics related to to the network service being provided, information about the IP address of the remote machine and...
7
2861
by: z1freeride | last post by:
I have a filmstrip control on my windows C# app. It's populated with images. Is there anyway to add a right-click contextual menu to each image? I want the user to have the ability to right click and have some options (like open image in a graphics application). Thanks for any help.
0
7520
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7446
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7718
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7470
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7809
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5088
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1936
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1058
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.