[Dojo-interest] Widget: "node has no properties" exception

Nicola Rizzo nicola.rizzo+dojo at gmail.com
Thu Dec 14 04:59:22 MST 2006


Can you send the function code?
Thank you!
       Nicola

On 12/14/06, Brandl, Markus <markus.brandl at wirecard.com> wrote:
> "this" refer to the widget. iv'e used "this" syntax inside a function of my widget, to access the node.
>
> -----Ursprüngliche Nachricht-----
> Von: dojo-interest-bounces at dojotoolkit.org
> [mailto:dojo-interest-bounces at dojotoolkit.org]Im Auftrag von Nicola
> Rizzo
> Gesendet: Donnerstag, 14. Dezember 2006 12:36
> An: dojo-interest at dojotoolkit.org
> Betreff: Re: [Dojo-interest] Widget: "node has no properties" exception
>
>
> "this" is referred to your widget or is in another scope? :?
>           Nicola
>
> On 12/14/06, Brandl, Markus <markus.brandl at wirecard.com> wrote:
> > yes.. i can. but without any effect.
> >
> > i added some try catch:
> > "this.listBoxNode has no properties"
> >
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: dojo-interest-bounces at dojotoolkit.org
> > [mailto:dojo-interest-bounces at dojotoolkit.org]Im Auftrag von Nicola
> > Rizzo
> > Gesendet: Donnerstag, 14. Dezember 2006 12:08
> > An: dojo-interest at dojotoolkit.org
> > Betreff: Re: [Dojo-interest] Widget: "node has no properties" exception
> >
> >
> > Mmm,
> > I'm not sure: can you change the value "domNode" for your first dojoAttachPoint?
> > Regards,
> >     Nicola
> >
> > On 12/14/06, Brandl, Markus <markus.brandl at wirecard.com> wrote:
> > > hi together,
> > >
> > > when i wan't to access the nodes of my widget, i get the following exceptin in the firebug console:
> > >
> > > node has no properties
> > > utils.js (line 798)
> > > anonymousdojo.js (line 278)
> > > anonymousdojo.js (line 3127)
> > > anonymousdojo.js (line 272)
> > > anonymousdojo.js (line 253)
> > > anonymousdojo.js (line 10695)
> > > anonymousdojo.js (line 9813)
> > > anonymousdojo.js (line 10055)
> > > anonymousdojo.js (line 10117)
> > > anonymousdojo.js (line 10139)
> > > anonymousdojo.js (line 10130)
> > > anonymousdojo.js (line 10139)
> > > anonymousdojo.js (line 10668)
> > > anonymousdojo.js (line 9815)
> > > anonymousdojo.js (line 10055)
> > > anonymousdojo.js (line 10117)
> > > anonymousdojo.js (line 10139)
> > > anonymousdojo.js (line 10130)
> > > anonymousdojo.js (line 10139)
> > > anonymousdojo.js (line 10668)
> > > anonymousdojo.js (line 9815)
> > > anonymousdojo.js (line 10055)
> > > anonymousdojo.js (line 10117)
> > > anonymousdojo.js (line 10139)
> > > anonymousdojo.js (line 10130)
> > > anonymousdojo.js (line 10139)
> > > anonymousdojo.js (line 10130)
> > > anonymousdojo.js (line 10139)
> > > anonymousdojo.js (line 10130)
> > > anonymousdojo.js (line 10139)
> > > anonymousdojo.js (line 10130)
> > > anonymousdojo.js (line 10139)
> > > anonymousdojo.js (line 10130)
> > > anonymousdojo.js (line 10139)
> > > anonymousdojo.js (line 10130)
> > > anonymousdojo.js (line 10139)
> > > anonymousdojo.js (line 10130)
> > > anonymousdojo.js (line 10139)
> > > anonymousdojo.js (line 10130)
> > > anonymousdojo.js (line 876)
> > > anonymousdojo.js (line 884)
> > > anonymousdojo.js (line 237)
> > > anonymousdojo.js (line 293)
> > > anonymousdojo.js (line 286)
> > > dj_load_init
> > >
> > > ...the htmltemplate is loaded properly.
> > > <div dojoAttachPoint="domNode">
> > >     <select dojoAttachPoint="listBoxNode">
> > >
> > >     </select>
> > > </div>
> > >
> > > how could it be, that i can't access the "listBoxNode" to add a new option?
> > >
> > >
> > > e.g.
> > > var option = document.creatElement("option");
> > > option.text = "test";
> > > this.listBoxNode.add(option);
> > >
> > > thx for your help!
> > >
> > >
> > > _______________________________________________
> > > 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
> > >
> > _______________________________________________
> > 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
> > _______________________________________________
> > 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
> >
> _______________________________________________
> 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
> _______________________________________________
> 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
>


More information about the Dojo-interest mailing list