[Dojo-interest] Parsing widgets loaded asynchronously

sara.anna aishazafarmit at yahoo.com
Sun Aug 10 07:27:45 UTC 2008

i found the solution of parsing filtering select by using
dijit.byId(responsearea).setContent(response); from your thread. But still
my problem exist cause i want to parse a dijit.form.ValidationTextBox in
case filtering select will be empty from server side. Suppose any user
selects country from the country filtering select another filtering select
will show its states in case it finds the states from the database, but if
the program dont find any state against the selected country then it should
show a validation text box to type that state name in that text box and
hides the filtering select. Now the problem is that by using
dijit.byId(responsearea).setContent(response); it is parsing filtering
select successfully but not parsing text box and showing a standard text

Vikas Sasidharan wrote:
> Shaun,
> The widgets are not being parsed since you are using the .innerHTML
> which is a standard JS property and hence doesn't know anything about
> Dojo or parsing of widgets. You will have to instead use of a dijit
> ContentPane.
> i.e., instead of saying:
> dojo.byId('full_ticket_details').innerHTML = data;
> , use
> dijit.byId('full_ticket_details').setContent(data);  
> , where the 'full_ticket_details' should be a dijit.layout.ContentPane.
> For details, see the documentation of the "parseOnLoad" property defined
> in ContentPane.js.
> Rgds,
> Vikas
> On Wed, 2008-03-12 at 11:40 +0000, shaun_stanworth at wordbank.com wrote:
>> dojo.byId('full_ticket_details').innerHTML = data;
> Any comments or statements made in this email are not necessarily those of
> Tavant Technologies.
> The information transmitted is intended only for the person or entity to
> which it is addressed and may 
> contain confidential and/or privileged material. If you have received this
> in error, please contact the 
> sender and delete the material from any computer. All e-mails sent from or
> to Tavant Technologies 
> may be subject to our monitoring procedures.
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest

View this message in context: http://www.nabble.com/Parsing-widgets-loaded-asynchronously-tp16002918p18910683.html
Sent from the Dojo mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://turtle.dojotoolkit.org/pipermail/dojo-interest/attachments/20080810/dbb31e09/attachment.html 

More information about the Dojo-interest mailing list