Login Register

ToolTipDialog

I am working with the ToolTipDialog dijit and am having some problems putting more than one on a page. I am populating a div using ajax and innerHTML, in the html there is a table containing a drop down button in one column, after the html is set i am calling parser.parse(). When there are mutiple rows in the table i used a unique id for each ToolTipDialog dijit to avoid javascript errors for having multiple dialogs with the same id. The problem comes after the parser is finished. When there are multiple rows in the table the parser is only finding the first button in the table, all the other rows containing a button are displaying the text from the button. When i first saw this problem the first thing i did was replace my dijit code with the ToolTipDialog code in the example from the book of dojo documentation, replacing all the dijits in the dialog with a simple hello message for simplicity. also as a test i put several of these drop downs on my main page that is not loaded via ajax and each was parsed correctly since i have parseOnLoad set to true. i have tried calling the parser('tableId') as well as parser('outerDivId').

Long story short, i have any number of drop down buttons in a table and when i call parser.parse() only one is being converted to a dijit. in addition the one that IS converted does not show the popup when you click on it but this may be related to the fact that the tooltipdialog is the second dijit on the page and only the first is being converted.

thanks for your time.

Could you post the code?

I'm able to use multiple ToolTipDialog widgets on a page. Do you think you could post a code example? Also, what version of Dojo are you using? Thanks.

i was able to resolve this

thanks for the reply, i was able to resolve this. it was part of a bigger problem i had with another div i was hiding in the same region.