[Dojo-interest] Widget: Json Object as argument

Peter Wagener peter.wagener at hypoluxo.com
Tue Dec 12 12:05:44 MST 2006

Hi Markus,

Do you have a 'jsonArgument' attribute defined in the JavaScript code  
for the custom widget?  Does it have a default value (i.e. "")?  When  
writing widgets (at least in the 0.3.1 release), the attributes from  
the tag won't be passed in if you don't give them default values in  
the JavaScript code.


On Dec 12, 2006, at 10:23 AM, Brandl, Markus wrote:

> hi together,
> is there a possibility to pass a json object as an argument to a  
> widget. iv'e tried
> <div dojoType="myInputWidget
>      jsonArgument='{"key":"value"}''>
> </div>
> but this does'nt work.
> 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

More information about the Dojo-interest mailing list