aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes mouse hover on multiselect dropdown Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "mouse hover on multiselect dropdown" Watch "mouse hover on multiselect dropdown" New topic
Author

mouse hover on multiselect dropdown

auvrm papu
Ranch Hand

Joined: Sep 01, 2005
Posts: 105
I have a multiselect dropdown in JSP.
How can i add a mouse hover information...over those dropdown values..


Thanks!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Not supported.

Eric
auvrm papu
Ranch Hand

Joined: Sep 01, 2005
Posts: 105
Not supported means?

Not even by Ajax...or anything like that???


Originally posted by Eric Pascarello:
Not supported.

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

How would Ajax, a means to make server-side requests, have anything to do with this?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
auvrm papu
Ranch Hand

Joined: Sep 01, 2005
Posts: 105
I understand that..
but Ajax kind of imitates some client-side..requests isn't it?

Anyways..I'm wondering, if using CSS or JS would help may be?

or is that 0% chance...of doing this requirement?

Originally posted by Bear Bibeault:
How would Ajax, a means to make server-side requests, have anything to do with this?
Subhadip Chatterjee
Ranch Hand

Joined: Dec 12, 2006
Posts: 93
Hi Raja,
you can give it a shot, when you are writing the multiple select element, on the selected items, you can apply tooltip function, based on mouse hover. I ahve done something in XSL, which might be useful:
my xml file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="showcountry.xsl"?>
<countries>
<country>Cnt1</country>
<country>Cnt2</country>
<country>Cnt3</country>
<country>Cnt4</country>
<country>Cnt5</country>
<country>Cnt6</country>
</countries>

my xsl file:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl utput method='html' version='1.0' encoding='UTF-8' indent='yes'/>

<xsl:template match="/">
<html>
<body>
<form name="multiselect">
<table>
<tr>
<td>
<select multiple="true" name="multiTooltip">
<xsl:for-each select="countries/country">
<xsl:element name="option">
<xsl:attribute name="id"><xsl:value-of select="."/></xsl:attribute>
<xsl:attribute name="title"><xsl:value-of select="."/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute>
<xsl:value-of select="."/>
</xsl:element>
</xsl:for-each>
</select>
</td>
</tr>
</table>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
-----
you have to place xml and XSL in same folder, and then open the XSL in Browser.


Refreshing life every moment...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

What on earth does XSL have to do with anything?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Holy crap, I just learned something today title in the option actually does work!



Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mouse hover on multiselect dropdown
 
Similar Threads
mouse hover on multiselect dropdown
Multiselect List box
Tooltip on Line2D or Rectangle2D
Request input stream
tool tip