[Dojo-interest] dijit.Tooltip.open is not a function

Jérôme DESPATIS jerome at despatis.com
Fri Aug 19 12:55:40 EDT 2011


Yes you're right Bill, this hack seems useless

But, so, why the test_grid_tooltip_menu.html 
<http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/grid/tests/test_grid_tooltip_menu.html> 
bundled into dojo sdk uses such an hack ?

Full url: 
http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/grid/tests/test_grid_tooltip_menu.html


Le 19/08/2011 12:20, Bill Keese a écrit :
> I don't see why you need a hack, seems the dijit.hideTooltip() call 
> you have is sufficient.
>
> On Fri, Aug 19, 2011 at 7:02 PM, Jérôme DESPATIS <jerome at despatis.com 
> <mailto:jerome at despatis.com>> wrote:
>
>     As you're discussing about the tooltip open process, I have a
>     little question:
>
>     In a grid, I show a tooltip for some specific cells, I'm doing the
>     same way as the code explained here:
>     http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/grid/tests/test_grid_tooltip_menu.html
>
>     so to show the tooltip, I use the code: dijit.showTooltip(msg,
>     e.cellNode, ['below', 'above']);
>
>     And to hide the tooltip, I use this code (from the example html),
>     but it uses an ugly hack
>     => Does dojo1.7 would give the function to avoid this ugly hack ?:
>
>         dijit.hideTooltip(e.cellNode);
>         // FIXME: make sure that pesky tooltip doesn't reappear!
>         // would be nice if there were a way to hide tooltip without
>     regard to aroundNode.
>         dijit._masterTT._onDeck = null;
>
>     Thanks
>
>     Le 19/08/2011 10:37, Bill Keese a écrit :
>>     Yah, the Tooltip.open() API is new for 1.7, that's probably why
>>     it's not working for you.
>>
>>     On Sat, Aug 13, 2011 at 1:20 AM, petrel <liuwei108 at gmail.com
>>     <mailto:liuwei108 at gmail.com>> wrote:
>>
>>         I think you can use dijit.showTooltip to show a tooltip.
>>
>>         showTooltip
>>         Defined by dijit <http://dojotoolkit.org/api/1.3/dijit>
>>
>>         Display tooltip w/specified contents in specified position.
>>         See description of dijit.Tooltip.defaultPosition for details
>>         on position parameter. If position is not specified then
>>         dijit.Tooltip.defaultPosition is used.
>>
>>         Parameter 	Type 	Description
>>         innerHTML 	String 	
>>         aroundNode 	DomNode 	
>>         position 	String[] 	
>>         /Optional./
>>
>>
>>         2011/8/12 dareverend [via Dojo Toolkit] <[hidden email]
>>         <http://user/SendEmail.jtp?type=node&node=3249711&i=0>>
>>
>>             I have been (attempting) to learn Dojo and Dijit for a
>>             couple weeks now, and I am finding it very frustrating...
>>             case in point, and if anyone can give help it would be
>>             much appreciated.
>>
>>             dijit.Tooltip.open is not a function
>>
>>             I can create tooltips no problem, have them work... but
>>             you cannot open them... either by passing no ID
>>             (dijit.Tooltip.open()) or anyother attempt.
>>
>>             Goolging for several hours, all I get is developer logs
>>             stating it works, fixed, etc., and can make neither heads
>>             nor tails of it. The only official entry listed is :
>>
>>             open
>>             Defined by dijit.Tooltip
>>             Display the tooltip; usually not called directly.
>>             Parameter Type Description
>>             target DomNode
>>
>>
>>             Can anyone show me a demo or a link where you can a)
>>             create tooltips dynamically and b) control their opening.
>>
>>
>>
>>             ------------------------------------------------------------------------
>>             If you reply to this email, your message will be added to
>>             the discussion below:
>>             http://dojo-toolkit.33424.n3.nabble.com/dijit-Tooltip-open-is-not-a-function-tp3249612p3249612.html
>>
>>             To start a new topic under Dojo Toolkit, email [hidden
>>             email]
>>             <http://user/SendEmail.jtp?type=node&node=3249711&i=1>
>>             To unsubscribe from Dojo Toolkit, click here.
>>
>>
>>
>>         ------------------------------------------------------------------------
>>         View this message in context: Re: dijit.Tooltip.open is not a
>>         function
>>         <http://dojo-toolkit.33424.n3.nabble.com/dijit-Tooltip-open-is-not-a-function-tp3249612p3249711.html>
>>         Sent from the Dojo Toolkit mailing list archive
>>         <http://dojo-toolkit.33424.n3.nabble.com/> at Nabble.com.
>>
>>         ________________________________________________________
>>         Dojotoolkit: http://dojotoolkit.org
>>         Reference Guide: http://dojotoolkit.org/reference-guide
>>         API Documentation: http://dojotoolkit.org/api
>>         Tutorials: http://dojotoolkit.org/documentation
>>
>>         Dojo-interest at mail.dojotoolkit.org
>>         <mailto:Dojo-interest at mail.dojotoolkit.org>
>>         http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
>>
>>
>>
>>     ________________________________________________________
>>     Dojotoolkit:http://dojotoolkit.org
>>     Reference Guide:http://dojotoolkit.org/reference-guide
>>     API Documentation:http://dojotoolkit.org/api
>>     Tutorials:http://dojotoolkit.org/documentation
>>
>>     Dojo-interest at mail.dojotoolkit.org  <mailto:Dojo-interest at mail.dojotoolkit.org>
>>     http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
>
>
>     -- 
>     Jérôme Despatis
>     jerome at despatis.com  <mailto:jerome at despatis.com>
>
>
>     ________________________________________________________
>     Dojotoolkit: http://dojotoolkit.org
>     Reference Guide: http://dojotoolkit.org/reference-guide
>     API Documentation: http://dojotoolkit.org/api
>     Tutorials: http://dojotoolkit.org/documentation
>
>     Dojo-interest at mail.dojotoolkit.org
>     <mailto:Dojo-interest at mail.dojotoolkit.org>
>     http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
>
>
>
> ________________________________________________________
> Dojotoolkit: http://dojotoolkit.org
> Reference Guide: http://dojotoolkit.org/reference-guide
> API Documentation: http://dojotoolkit.org/api
> Tutorials: http://dojotoolkit.org/documentation
>
> Dojo-interest at mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest


-- 
Jérôme Despatis
jerome at despatis.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20110819/adaa451b/attachment.htm 


More information about the Dojo-interest mailing list