<!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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I
am implementing tooltip in our application. When the user points the cursor
to&nbsp;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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;script&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>topArray = new Array();</FONT></DIV>
<DIV><FONT face=Arial size=2>for(i=0; i&lt;size; i++)</FONT></DIV>
<DIV><FONT face=Arial size=2>{</FONT><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;
</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; titleInfo =&nbsp; //some dynamic
values</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; topArray[0] = new
Option('&lt;nobr title=titleInfo&gt;Title Info&lt;/nobr&gt;', "");</FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV><FONT face=Arial size=2>&lt;/script&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>In the&nbsp; 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 &lt;nobr
title=??&gt;Title Info&lt;/nobr&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>The above usage is giving a javascript
error.</FONT></DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>for example: &lt;nobr title="Title 3"&gt;
InsideDHTML&lt;/nobr&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>In the above example, the tooltip displays "Title
3" which is correct</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Can anybody please tell how should I pass the
variable <STRONG>titleInfo</STRONG> to the &lt;nobr&gt; tag.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks &amp; 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>