Click to See Complete Forum and Search --> : HELP in LIST TOOL TIP


shantha77
11-11-2003, 11:05 AM
in the list box size is fixed to 50 characters, but in the option value takes more than 50 characters till 100 characters. since the size is fixed to 50 characters i am not able to view more than 50 characters. the size of the list cannot be changed.

i need to have the tooltip above the option value. to show the full content of the value present in the list. this will be shown in the mouseover of the option values. for each and every values above the tooltip has to be displayed with the content of the option value. the list button has the postback operation(submiting the form) before selection it self i have to show full the content, this is my problem

is there any problem you faced like this, kindly send me the solution to this problem.

or is there any possiblity of the dynamic growable size of the list is possible send me the script.


kindly give me light on this issue.



Regards
shantha

Vladdy
11-11-2003, 11:14 AM
Best solution: do not restrict the width of your select control - let it scale with the content.

For JS enabled browsers you can emulate the listbox using block elements. Here is IE only demo (never really finished the script...) http://www.vladdy.net/tests/lbie.html

shantha77
11-11-2003, 11:28 AM
hi,

thanks for reply,

vLaddy posted a link which shows sloution as like to my problem, but when i changed to size is "1" i am not able to view the tool-tip, what will be the correction or is it possible to view the tooltip if the size is one.


advanced thanks
Shantha

Vladdy
11-11-2003, 11:32 AM
As I said that was a quick demo. You can expand the code to work as a drop down box and in all browsers (or you can a$k me to do it ;) )

shantha77
11-11-2003, 11:37 AM
hi Vladdy,

if i down load and the viewsource and executed it is showing the script error and not working as like as in the link. i think the javascript methods are missing or some of the methods missing in the view source. i want to know whether the view source is the full exact code for the demo or something missing. or i need to do something for that also.


Regards
Shantha

Vladdy
11-11-2003, 11:48 AM
It works only in IE and only when the size of select control is greater than 1 (list box representation). Beyond that it may give all kinds of errors. Some errors can also show up if you put the code in a page that has DOCTYPE declared that puts IE in "compliance" mode.
Once again, it's NOT a complete script, just some code thrown together over lunch hour to show the possibility of emulating listbox with block elements.