Callout Tag Demo
The ajax:callout tag is an easy way to attach a callout or popup balloon to any
HTML element supporting an onclick event. The style of this callout is fairly flexible, but
generally has a header/title, a close link ('X'), and the content itself, of course.
You may also set a timeout on the callout to disappear after some time has passed (expressed in milliseconds). Alternately, you have it not timeout at all and, thereby, can force the user to close the callout manually (by clicking the close link).
You must include a generic DIV tag to act as the container for all popups. This is primarily to get around an IE bug/feature that (in some cases) prevents inserting DOM elements after the webpage loads.
Click the "definition" link below to send a request to the backend servlet, retrieve the callout content, and display the callout itself.
Callout in Action
The Hitchhiker's Guide to the Galaxy is a science fiction series written by Douglas Adams (1952?2001). The series follows the adventures of Arthur Dent, a hapless Englishman who escapes the destruction of Earth by an alien race called the Vogons with his friend Ford Prefect, an alien from a small planet somewhere in the vicinity of Betelgeuse and researcher for the eponymous guide. Zaphod Beeblebrox, Ford's semi-cousin and part-time Galactic President, unknowingly saves the pair from certain death. He brings them aboard his stolen spaceship, the Heart of Gold, whose crew rounds out the main cast of characters: Marvin the Paranoid Android (a severely depressed robot), and Trillian, a woman known by Arthur as the only other surviving human being. After this, the characters get involved in a quest to find legendary planet of Magrathea and the Question to the Ultimate Answer.
And this is another example using onmouseover event with no title.



Toggle Me