<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3821.2800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2> I
am implementing tooltip in our application. When the user points the cursor
to each option in a dynamically populated select box, there should be a
tooltip displayed which contians information regarding the option. Technologies
are java, jsp and javascript.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>In the script, I am fetching each option which is
dynamic and populating an array in the following fashion:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><script></FONT></DIV>
<DIV><FONT face=Arial size=2>topArray = new Array();</FONT></DIV>
<DIV><FONT face=Arial size=2>for(i=0; i<size; i++)</FONT></DIV>
<DIV><FONT face=Arial size=2>{</FONT><FONT face=Arial size=2>
</FONT></DIV>
<DIV><FONT face=Arial size=2> titleInfo = //some dynamic
values</FONT></DIV>
<DIV><FONT face=Arial size=2> topArray[0] = new
Option('<nobr title=titleInfo>Title Info</nobr>', "");</FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV><FONT face=Arial size=2></script></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>In the for loop, in each iteration there will
be a dynamic value populated in the variable <STRONG>titleInfo. </STRONG>I have
to pass the <STRONG>titleInfo</STRONG> variable to the <nobr
title=??>Title Info</nobr></FONT></DIV>
<DIV><FONT face=Arial size=2>The above usage is giving a javascript
error.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>The point to be noted is that if I am passing hard
coded value to the <STRONG>nobr title</STRONG>, the tooltip is displaying
correctly.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>for example: <nobr title="Title 3">
InsideDHTML</nobr></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>In the above example, the tooltip displays "Title
3" which is correct</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Can anybody please tell how should I pass the
variable <STRONG>titleInfo</STRONG> to the <nobr> tag.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thanks & Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Jayprakash</FONT></DIV></BODY></HTML>
<table><tr><td bgcolor=#ffffff><font color=#000000>*********************************************************<br>Disclaimer: <br><br>This message (including any attachments) contains <br>confidential information intended for a specific <br>individual and purpose, and is protected by law. <br>If you are not the intended recipient, you should <br>delete this message and are hereby notified that <br>any disclosure, copying, or distribution of this<br>message, or the taking of any action based on it, <br>is strictly prohibited.<br><br>*********************************************************<br>Visit us at http://www.mahindrabt.com<br><br><br><br></font></td></tr></table>