#4674 closed defect (fixed)
Cannot dynamically add tooltips to dojo widgets or plain div tags
Reported by: | guest | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | 1.0 |
Component: | Dijit | Version: | 0.9 |
Keywords: | Tooltip dynamic javascript firbug | Cc: | |
Blocked By: | Blocking: |
Description
As stated in the comments at http://dojotoolkit.org/book/dojo-porting-guide-0-4-x-0-9/widgets/tooltip
Adding a tooltip with JS does not work for me
From firebug, most dojo/dijit operations work.
However
t=new dijit.Tooltip({label:"foo", connectId:"bar"});
does absolutely nothing, even when an HTML input element or dijit called "bar" exists: t remains undefined. This is still true if I put t in the local scope.
I have required dijit.Tooltip
I've attached a simple test-case that uses addOnLoad to try to do the same thing. That doesn't work either, but gives the following error instead. The actions above have consequences as described.
Error: this.srcNodeRef has no properties http://my.host/dojo/dojo/dojo.js Line 141
Attachments (1)
Change History (6)
Changed 13 years ago by
Attachment: | tooltip.html added |
---|
comment:2 Changed 13 years ago by
invalid
var t = new dijit.Tooltip({label:'foo', connectId:'bar'}, document.createElement("div"));
should work.
Regards,
Nicola
comment:4 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:5 Changed 13 years ago by
Milestone: | → 1.0 |
---|
Example of problem