<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
	>
<channel>
	<title>Comments on: The dojo parser.</title>
	<atom:link href="http://dojocampus.org/content/2008/03/08/the-dojo-parser/feed/" rel="self" type="application/rss+xml" />
	<link>http://dojocampus.org/content/2008/03/08/the-dojo-parser/</link>
	<description>The definitive resource for all things Dojo: past, present, future.</description>
	<lastBuildDate>Wed, 10 Mar 2010 18:40:27 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dante</title>
		<link>http://dojocampus.org/content/2008/03/08/the-dojo-parser/comment-page-1/#comment-352</link>
		<dc:creator>dante</dc:creator>
		<pubDate>Sun, 19 Apr 2009 13:15:20 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=63#comment-352</guid>
		<description>@ricardochois - You might want to read this newer article: http://dojocampus.org/content/2009/04/15/declarative-vs-programatic/ ... most of the work being done in your paste above is unnecessary, especially with the base Dojo API&#039;s already available to you.</description>
		<content:encoded><![CDATA[<p>@ricardochois &#8211; You might want to read this newer article: <a href="http://dojocampus.org/content/2009/04/15/declarative-vs-programatic/" rel="nofollow">http://dojocampus.org/content/2009/04/15/declarative-vs-programatic/</a> &#8230; most of the work being done in your paste above is unnecessary, especially with the base Dojo API&#8217;s already available to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ricardochois</title>
		<link>http://dojocampus.org/content/2008/03/08/the-dojo-parser/comment-page-1/#comment-351</link>
		<dc:creator>ricardochois</dc:creator>
		<pubDate>Sat, 18 Apr 2009 17:48:02 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=63#comment-351</guid>
		<description>Hi I&#039;m new with dojo.

I want to dinamically create a widget, so i create an HTML element (TextBox) and then try to parse it, but it just looks like an basic html textbox and not like a dojoType textBox.

Here is the function i&#039;m using, what is wrong???

function agregarFilaAsignatura(argumentos){
                totalAgregadas++;
                tabla = document.getElementById(&quot;tablaDatos&quot;);
                var elmTR;
                var elmTD;
                var elmText;
                elmTR = tabla.insertRow(fila+1); 
                
                actualizarIdsFila();
                elmTR.id = fila+1;

                for (var i=0; i&lt;5; i++) {

                    elmTD = elmTR.insertCell(i);

                    elmText = document.createTextNode(argumentos.rbAsignatura.split(&quot;-&quot;)[1]);

                    elmInput = document.createElement(&#039;input&#039;); 
                    elmInput.type = &#039;hidden&#039;;
                    elmInput.value = argumentos.rbAsignatura.split(&quot;-&quot;)[0];
                    elmInput.id = &quot;asignaturas&quot; + idDocente;
                    elmInput.name = &quot;asignaturas&quot; + idDocente;

                    elmInputHoras = document.createElement(&#039;input&#039;); 
                    elmInputHoras.type = &#039;text&#039;;
                    elmInputHoras.dojoType = &#039;dijit.form.TextBox&#039;;
                    elmInputHoras.style.width = &#039;40px&#039;;                    
                    elmInputHoras.value = argumentos.rbAsignatura.split(&quot;-&quot;)[2];
                    elmInputHoras.id = &quot;horasAsignaturas&quot; + idDocente;
                    elmInputHoras.name = &quot;horasAsignaturas&quot; + idDocente;
                    
                    dojo.parser.parse(dojo.byId(&quot;horasAsignaturas&quot; + idDocente));

                    
                    if(i==1) elmTD.appendChild(elmInput);
                    if(i==3) elmTD.appendChild(elmText);
                    if(i==4) elmTD.appendChild(elmInputHoras);
                    
                 }                 
                 
             }</description>
		<content:encoded><![CDATA[<p>Hi I&#8217;m new with dojo.</p>
<p>I want to dinamically create a widget, so i create an HTML element (TextBox) and then try to parse it, but it just looks like an basic html textbox and not like a dojoType textBox.</p>
<p>Here is the function i&#8217;m using, what is wrong???</p>
<p>function agregarFilaAsignatura(argumentos){<br />
                totalAgregadas++;<br />
                tabla = document.getElementById(&#8221;tablaDatos&#8221;);<br />
                var elmTR;<br />
                var elmTD;<br />
                var elmText;<br />
                elmTR = tabla.insertRow(fila+1); </p>
<p>                actualizarIdsFila();<br />
                elmTR.id = fila+1;</p>
<p>                for (var i=0; i&lt;5; i++) {</p>
<p>                    elmTD = elmTR.insertCell(i);</p>
<p>                    elmText = document.createTextNode(argumentos.rbAsignatura.split(&#8221;-&#8221;)[1]);</p>
<p>                    elmInput = document.createElement(&#8217;input&#8217;);<br />
                    elmInput.type = &#8216;hidden&#8217;;<br />
                    elmInput.value = argumentos.rbAsignatura.split(&#8221;-&#8221;)[0];<br />
                    elmInput.id = &#8220;asignaturas&#8221; + idDocente;<br />
                    elmInput.name = &#8220;asignaturas&#8221; + idDocente;</p>
<p>                    elmInputHoras = document.createElement(&#8217;input&#8217;);<br />
                    elmInputHoras.type = &#8216;text&#8217;;<br />
                    elmInputHoras.dojoType = &#8216;dijit.form.TextBox&#8217;;<br />
                    elmInputHoras.style.width = &#8216;40px&#8217;;<br />
                    elmInputHoras.value = argumentos.rbAsignatura.split(&#8221;-&#8221;)[2];<br />
                    elmInputHoras.id = &#8220;horasAsignaturas&#8221; + idDocente;<br />
                    elmInputHoras.name = &#8220;horasAsignaturas&#8221; + idDocente;</p>
<p>                    dojo.parser.parse(dojo.byId(&#8221;horasAsignaturas&#8221; + idDocente));</p>
<p>                    if(i==1) elmTD.appendChild(elmInput);<br />
                    if(i==3) elmTD.appendChild(elmText);<br />
                    if(i==4) elmTD.appendChild(elmInputHoras);</p>
<p>                 }                 </p>
<p>             }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ribob2</title>
		<link>http://dojocampus.org/content/2008/03/08/the-dojo-parser/comment-page-1/#comment-342</link>
		<dc:creator>ribob2</dc:creator>
		<pubDate>Mon, 13 Apr 2009 22:10:36 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=63#comment-342</guid>
		<description>Dojo object and element creation timing?  When do things get parsed and created with parseOnLoad?   I did this:

  lpThumb = new dijit.layout.ContentPane();
  lpThumb.domNode.id = &quot;leftThumbtray&quot;;
  lpThumb.attr(&quot;title&quot;, &quot;Thumb&quot;);
  lp.addChild(lpThumb);

(where lp is an existing TabContainer)  There are two problems: 1) at the time postCreate is called on lbThumb, it seems that the widget domNode has not be inserted into the DOM tree (ie createElement was done, but it wasn&#039;t appendChild()ed into the tree)  2) it seems that immediately after the lp.addChild(lpThumb) executes, the lpThumb.addChild is not defined in that object 

I&#039;d like to understand what is going on here, or more generally, what is the flow of operations and timing when things are created (so you can know when you can start using things that are being created.</description>
		<content:encoded><![CDATA[<p>Dojo object and element creation timing?  When do things get parsed and created with parseOnLoad?   I did this:</p>
<p>  lpThumb = new dijit.layout.ContentPane();<br />
  lpThumb.domNode.id = &#8220;leftThumbtray&#8221;;<br />
  lpThumb.attr(&#8221;title&#8221;, &#8220;Thumb&#8221;);<br />
  lp.addChild(lpThumb);</p>
<p>(where lp is an existing TabContainer)  There are two problems: 1) at the time postCreate is called on lbThumb, it seems that the widget domNode has not be inserted into the DOM tree (ie createElement was done, but it wasn&#8217;t appendChild()ed into the tree)  2) it seems that immediately after the lp.addChild(lpThumb) executes, the lpThumb.addChild is not defined in that object </p>
<p>I&#8217;d like to understand what is going on here, or more generally, what is the flow of operations and timing when things are created (so you can know when you can start using things that are being created.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ribob2</title>
		<link>http://dojocampus.org/content/2008/03/08/the-dojo-parser/comment-page-1/#comment-341</link>
		<dc:creator>ribob2</dc:creator>
		<pubDate>Mon, 13 Apr 2009 21:56:57 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=63#comment-341</guid>
		<description>Passing atttributes resolved?  I think I figured it out:  Dojo may replace the original  you create with its own, losing all attributes (except those it creates)  It only looks for attributes matching the names of the &#039;instance variables&#039; defined in widget declaration.   So you can pass things as long as they are named as instance variables.</description>
		<content:encoded><![CDATA[<p>Passing atttributes resolved?  I think I figured it out:  Dojo may replace the original  you create with its own, losing all attributes (except those it creates)  It only looks for attributes matching the names of the &#8216;instance variables&#8217; defined in widget declaration.   So you can pass things as long as they are named as instance variables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ribob2</title>
		<link>http://dojocampus.org/content/2008/03/08/the-dojo-parser/comment-page-1/#comment-340</link>
		<dc:creator>ribob2</dc:creator>
		<pubDate>Mon, 13 Apr 2009 20:16:31 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=63#comment-340</guid>
		<description>Passing information from the original HTML to the widget methods  ??  I want to allow the original HTML that specifies a widget to be able to pass information to widget methods or be saved in instance variables.  I tried adding some attributes of my own to the initial div, but by the time is is parsed and the widget is loaded, those attributes have disappeared.   How do I pass info from the HTML to the widget object?    Also, is there more documentation on the details of the parsing process?



var catWidget = dijit.byId(&quot;cat&quot;);
var catDiv = catWidget.domNode;
var species = catDiv.getAttribute(&quot;species&quot;);  // Doesn&#039;t work, no species attr in the div</description>
		<content:encoded><![CDATA[<p>Passing information from the original HTML to the widget methods  ??  I want to allow the original HTML that specifies a widget to be able to pass information to widget methods or be saved in instance variables.  I tried adding some attributes of my own to the initial div, but by the time is is parsed and the widget is loaded, those attributes have disappeared.   How do I pass info from the HTML to the widget object?    Also, is there more documentation on the details of the parsing process?</p>
<p>var catWidget = dijit.byId(&#8221;cat&#8221;);<br />
var catDiv = catWidget.domNode;<br />
var species = catDiv.getAttribute(&#8221;species&#8221;);  // Doesn&#8217;t work, no species attr in the div</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gtducati</title>
		<link>http://dojocampus.org/content/2008/03/08/the-dojo-parser/comment-page-1/#comment-94</link>
		<dc:creator>gtducati</dc:creator>
		<pubDate>Fri, 18 Apr 2008 17:59:32 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=63#comment-94</guid>
		<description>Ah ... good, so I wasn&#039;t going crazy :)  Thanks!</description>
		<content:encoded><![CDATA[<p>Ah &#8230; good, so I wasn&#8217;t going crazy <img src='http://dojocampus.org/content/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dante</title>
		<link>http://dojocampus.org/content/2008/03/08/the-dojo-parser/comment-page-1/#comment-93</link>
		<dc:creator>dante</dc:creator>
		<pubDate>Fri, 18 Apr 2008 17:57:38 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=63#comment-93</guid>
		<description>Actually, it looks like there is no node id=&quot;container&quot; in the themeTester anymore ... which means dojo.byId(&quot;container&quot;) is returning null &#124;&#124; undefined, which means dojo.parser.parse() is being called without any arguments, thus parsing the entire body.  Sorry for the confusion.  I swear it did have and id=&quot;container&quot; at one point ;)</description>
		<content:encoded><![CDATA[<p>Actually, it looks like there is no node id=&#8221;container&#8221; in the themeTester anymore &#8230; which means dojo.byId(&#8221;container&#8221;) is returning null || undefined, which means dojo.parser.parse() is being called without any arguments, thus parsing the entire body.  Sorry for the confusion.  I swear it did have and id=&#8221;container&#8221; at one point <img src='http://dojocampus.org/content/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gtducati</title>
		<link>http://dojocampus.org/content/2008/03/08/the-dojo-parser/comment-page-1/#comment-92</link>
		<dc:creator>gtducati</dc:creator>
		<pubDate>Fri, 18 Apr 2008 17:48:55 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=63#comment-92</guid>
		<description>Hey dante, thanks for the quick response. To clarify, when I said everything, I meant everything in the document body. 

In any case, I was really just having problems with the statement &quot;It scans the dom (or a portion of it) turning nodes with dojoType=&quot;&quot; attributes into declared classes&quot;, I was confused about the use of dojoType=&quot;&quot; in said quote.  I was assuming that the statement implied the parser was looking for &#039;empty&#039; dojoType attributes, since the phrase  dojoType=&quot;&quot; is used.  In fact, all it&#039;s really saying is that it scans the body for all nodes with a dojoType attribute with a qualified.class.name for rendering. So, yes, you did answer my question.

I do have another question; this one is in regards to the themeTester and its use of dojo.parser.parse(&#039;container&#039;) in the current 1.1.0 release.  What is this exactly looking for?  How is dojo.parser.parse(&#039;container&#039;) rendering the entire themeTester? Does &#039;container&#039; imply the document body too? Am I missing something here? Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hey dante, thanks for the quick response. To clarify, when I said everything, I meant everything in the document body. </p>
<p>In any case, I was really just having problems with the statement &#8220;It scans the dom (or a portion of it) turning nodes with dojoType=&#8221;" attributes into declared classes&#8221;, I was confused about the use of dojoType=&#8221;" in said quote.  I was assuming that the statement implied the parser was looking for &#8216;empty&#8217; dojoType attributes, since the phrase  dojoType=&#8221;" is used.  In fact, all it&#8217;s really saying is that it scans the body for all nodes with a dojoType attribute with a qualified.class.name for rendering. So, yes, you did answer my question.</p>
<p>I do have another question; this one is in regards to the themeTester and its use of dojo.parser.parse(&#8217;container&#8217;) in the current 1.1.0 release.  What is this exactly looking for?  How is dojo.parser.parse(&#8217;container&#8217;) rendering the entire themeTester? Does &#8216;container&#8217; imply the document body too? Am I missing something here? Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dante</title>
		<link>http://dojocampus.org/content/2008/03/08/the-dojo-parser/comment-page-1/#comment-91</link>
		<dc:creator>dante</dc:creator>
		<pubDate>Fri, 18 Apr 2008 15:15:16 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=63#comment-91</guid>
		<description>dojo.body() is everything?  You can&#039;t have markup outside of body, so when you call dojo.parser.parse() or dojo.parser.parse(dojo.body()) it&#039;s identical. or perhaps I&#039;m missing your question.</description>
		<content:encoded><![CDATA[<p>dojo.body() is everything?  You can&#8217;t have markup outside of body, so when you call dojo.parser.parse() or dojo.parser.parse(dojo.body()) it&#8217;s identical. or perhaps I&#8217;m missing your question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gtducati</title>
		<link>http://dojocampus.org/content/2008/03/08/the-dojo-parser/comment-page-1/#comment-90</link>
		<dc:creator>gtducati</dc:creator>
		<pubDate>Fri, 18 Apr 2008 14:58:32 +0000</pubDate>
		<guid isPermaLink="false">http://dojocampus.org/content/?p=63#comment-90</guid>
		<description>I really like this cookie; however, there are two conflicting statements made concerning the call: dojo.parser.parse();

You first say that the document is scanned for all types of dojoType=&quot;&quot;. However, in the Dojo-Preloader example their is a comment that says &quot;// run the parser. defaults to dojo.body()&quot;, which indicates that the call of &quot;dojo.parser.parse();&quot; is essentially scanning everything for rendering. Which is it?

I&#039;ve tested this myself, and it seems that the latter is true.</description>
		<content:encoded><![CDATA[<p>I really like this cookie; however, there are two conflicting statements made concerning the call: dojo.parser.parse();</p>
<p>You first say that the document is scanned for all types of dojoType=&#8221;". However, in the Dojo-Preloader example their is a comment that says &#8220;// run the parser. defaults to dojo.body()&#8221;, which indicates that the call of &#8220;dojo.parser.parse();&#8221; is essentially scanning everything for rendering. Which is it?</p>
<p>I&#8217;ve tested this myself, and it seems that the latter is true.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.457 seconds -->
