<?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"
	>
<channel>
	<title>Comments on: Another Approach to State</title>
	<atom:link href="http://weblog.openlaszlo.org/archives/2006/01/another-approach-to-state/feed/" rel="self" type="application/rss+xml" />
	<link>http://weblog.openlaszlo.org/archives/2006/01/another-approach-to-state/</link>
	<description>asynchronous javascript since before it was cool</description>
	<pubDate>Tue, 14 Oct 2008 13:20:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Candide</title>
		<link>http://weblog.openlaszlo.org/archives/2006/01/another-approach-to-state/#comment-7234</link>
		<dc:creator>Candide</dc:creator>
		<pubDate>Mon, 07 Aug 2006 23:32:34 +0000</pubDate>
		<guid isPermaLink="false">http://weblog.openlaszlo.org/archives/2006/01/another-approach-to-state/#comment-7234</guid>
		<description>Sorry I wanted to send code snippets along with my comment but that didn't work. I you let me know your email address, I'd be glad to send it to you.</description>
		<content:encoded><![CDATA[<p>Sorry I wanted to send code snippets along with my comment but that didn&#8217;t work. I you let me know your email address, I&#8217;d be glad to send it to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Candide</title>
		<link>http://weblog.openlaszlo.org/archives/2006/01/another-approach-to-state/#comment-7233</link>
		<dc:creator>Candide</dc:creator>
		<pubDate>Mon, 07 Aug 2006 23:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://weblog.openlaszlo.org/archives/2006/01/another-approach-to-state/#comment-7233</guid>
		<description>Hi,

You approach to state is very interesting. I'm putting it into practice in my application. Only, I got confused by the attribute accessing subtleties that I had to face:

			
				  
				
				
				
				
					(article not saved yet)
				
(...)
				
					Debug.write("saveArticleContent: " + articleContent);
					if (this.getAttribute("articlestatus")=="new") {
						Debug.write("We should prompt the user with the name of the new article");
						storycontrols.setAttribute("mystate", "createarticlestate");
					}
				

Note that this.mystate in the state constraints didn't work. I understood that "this" inside the constraint was pointing to the same thing as storycontrols, but that's apparently not the way the compiler understands it.

Similarly I don't understand why I couldn't simply assign the "mystate" attribute using the "=" operator in the "saveArticleContent" method (which is a member of storyControls).

Any help is really appreciated!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>You approach to state is very interesting. I&#8217;m putting it into practice in my application. Only, I got confused by the attribute accessing subtleties that I had to face:</p>
<p>					(article not saved yet)</p>
<p>(&#8230;)</p>
<p>					Debug.write(&#8221;saveArticleContent: &#8221; + articleContent);<br />
					if (this.getAttribute(&#8221;articlestatus&#8221;)==&#8221;new&#8221;) {<br />
						Debug.write(&#8221;We should prompt the user with the name of the new article&#8221;);<br />
						storycontrols.setAttribute(&#8221;mystate&#8221;, &#8220;createarticlestate&#8221;);<br />
					}</p>
<p>Note that this.mystate in the state constraints didn&#8217;t work. I understood that &#8220;this&#8221; inside the constraint was pointing to the same thing as storycontrols, but that&#8217;s apparently not the way the compiler understands it.</p>
<p>Similarly I don&#8217;t understand why I couldn&#8217;t simply assign the &#8220;mystate&#8221; attribute using the &#8220;=&#8221; operator in the &#8220;saveArticleContent&#8221; method (which is a member of storyControls).</p>
<p>Any help is really appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver Steele &#187; Blog Archive &#187; Ruby and Laszlo</title>
		<link>http://weblog.openlaszlo.org/archives/2006/01/another-approach-to-state/#comment-208</link>
		<dc:creator>Oliver Steele &#187; Blog Archive &#187; Ruby and Laszlo</dc:creator>
		<pubDate>Wed, 29 Mar 2006 12:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://weblog.openlaszlo.org/archives/2006/01/another-approach-to-state/#comment-208</guid>
		<description>[...] Update: Now that I&#8217;ve done more Ruby and DHTML programming, I can see that the diagram above gives OpenLaszlo short shrift. Although OpenLaszlo is lower level that Ruby with respect to code generation and a MOP, the use of databinding and constraints makes it higher level in a different set of ways. [...]</description>
		<content:encoded><![CDATA[<p>[...] Update: Now that I&#8217;ve done more Ruby and DHTML programming, I can see that the diagram above gives OpenLaszlo short shrift. Although OpenLaszlo is lower level that Ruby with respect to code generation and a MOP, the use of databinding and constraints makes it higher level in a different set of ways. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
