I have a validation routine in a form that assigns onMouseOver events to textboxes that don't meet validation rules. I'm trying to use the tooltip widget from here: http://www.walterzorn.com/tooltip/tooltip_e.htm
. The syntax for that particular bit of code works fine when it's used hardcoded inline in this format:
<input onMouseOver = "return escape('Please enter a valid number.')" id="txtTest" type="text">
The problem comes when I try to assign the onMouseover event to an input (necessary to be useful for input validation).
rn escape('ID a valid number.')");
n escape('Attach a valid number.')");
n escape('Attach a valid number.')});
1.) Fails silently in IE and FF, which is what I'd expect. The attribute is set, but the browser isn't watching for the event. Fine.
2.) Fails in FF (expected; it's an IE-proprietary function). Fails in IE, claiming a Type mismatch in the line (char 7).
3.) Fails totally silently now. Not really an improvement.
4.) Fails in IE (expected; it's a FF-proprietary function). Fails in FF, throwing "uncaught exception: null" with no accompanying line number. Changing 'false' to 'true' makes no difference.
I just want to be able to programatically assign tooltip-style pop-ups on mouseover; I'm not married to this particular widget. I don't care whether the final answer involves correcting my technique, correcting my imported tool, or picking another tool entirely. Any input is appreciated.