[Dojo-interest] How do I debug a widget?

Karl Tiedt ktiedt at gmail.com
Wed Dec 13 17:37:46 MST 2006


Do you have your namespace defined anywhere? part of the new Namespacing
change required a little bit more do be done for NS's to work I believe....
look at the example in tests/widget/test_Button*.html I believe it includes
an acme.* namespace that you can use as an example.

On 12/13/06, garey <garey.mills at gmail.com> wrote:
>
>
>
>      I have some more information. After putting some debug statements on
> my
> html page, I get this
>
> DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not
> locate widget implementation for "godisplayboard" in "ngn.widget"
> registered
> to namespace "ngn". Developers must specify correct namespaces for all
> non-Dojo widgets -- will be removed in version: 0.5
>
>        I have dojo unpacked into a web-accessible directory called 'dojo'.
> I
> have a directory next to it, also web-accessible, called 'ngn'. Inside ngn
> I
> have the directories 'widget' and 'widget/templates'. I reference the
> widget
> in my web page by the statement 'dojo.require("ngn.widget.GoDisplayBoard
> ");,
> since the widget is named exactly that (the file being
> 'ngn/widget/GoDisplayBoard.js'). This seems to me to follow exactly the
> advice on the Dojo book on namespaces. What am I doing wrong?
>
>
>
>
> garey wrote:
> >
> > Hello -
> >
> >      I am trying to write a widget that displays some SVG on Firefox2.0.
> > This is a first step to making it more general. No matter what I do,
> > nothing
> > displays and the Javascript console shows no messages. How can I debug
> > this?
> > Is there some way to see what Dojo.js is doing as it tries to load the
> > widget?
> >
> > _______________________________________________
> > Dojo FAQ: http://dojo.jot.com/FAQ
> > Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> > Dojo-interest at dojotoolkit.org
> > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-do-I-debug-a-widget--tf2817391.html#a7864518
> Sent from the Dojo mailing list archive at Nabble.com.
>
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>



-- 
-Karl Tiedt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20061213/1bb2bc69/attachment.html


More information about the Dojo-interest mailing list