Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mouse hover on multiselect dropdown

 
auvrm papu
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a multiselect dropdown in JSP.
How can i add a mouse hover information...over those dropdown values..


Thanks!
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not supported.

Eric
 
auvrm papu
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64972
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How would Ajax, a means to make server-side requests, have anything to do with this?
 
auvrm papu
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64972
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What on earth does XSL have to do with anything?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Holy crap, I just learned something today title in the option actually does work!



Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic