[Dojo-interest] Unregistering parsed widget

Hans Hohenfeld derhans at nerdshack.com
Tue Dec 18 17:55:02 UTC 2007


Hi,

Follownig Use Case:

A webpage containing an <div> container to which
HTML code provided by the server is wirtten via
the innerHTML attribute.

This HTML code contains some markup with dojoType
(ContentPane, Dialog, ...), and is parsed with dojo.parser.parse().
Some of those widgets have an id Attribute.

After a specific peace of HTML with an widget with unique id is
loaded the second time, dojo.parser.parse() fails with following
message (to firebug):

Error: Tried to register widget with id==my_id but that id is already registered

This seems to happen everytime a widget with the same id is parsed twice.

Questions:
1. Where exactly are those widgtes/ids registered?
2. Is there a way to remove this registration before/after replacing of innerHTML
   or before the call of dojo.parser.parse()

Hope someone can help,

thanks in advance

regards

Hans Hohenfeld
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://dojotoolkit.org/pipermail/dojo-interest/attachments/20071218/ed054f87/attachment.bin 


More information about the Dojo-interest mailing list