<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Using the StateManager in AJAX Apps</title>
	<link>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/</link>
	<description>where matthew tretter types stuff</description>
	<pubDate>Fri, 25 Jul 2008 02:55:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Yonel Meza</title>
		<link>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-134</link>
		<dc:creator>Yonel Meza</dc:creator>
		<pubDate>Mon, 07 Jan 2008 05:38:15 +0000</pubDate>
		<guid>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-134</guid>
		<description>	&lt;p&gt;when I comment the line: &#8220;parent.document.location.hash = &#8220;&#8217; + (stateID == _self().defaultStateID ? &#8216;#&#8217; : stateID) + &#8216;&#8221;; &#8220;&lt;br /&gt;
of the _setHash function in the line &lt;br /&gt;
&#8220;frames[_iframeID].document.write(&#8216;parent.document.location.hash = &#8220;&#8217; + (stateID == _self().defaultStateID ? &#8216;#&#8217; : stateID) + &#8216;&#8221;; /* Wait for IE to impose its title before setting ours. */setTimeout( function(){ parent.&lt;span class="caps"&gt;EXANIMO&lt;/span&gt;.managers.StateManager._updateIFrame(&#8221;&#8217; + stateID + &#8216;&#8221;); }, 10);&#8217;);&lt;br /&gt;
&#8220; &lt;/p&gt;

	&lt;p&gt;it work perfect in the explorer but don&#8217;t send de &#8220;#something&#8221; to the address bar&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>when I comment the line: &#034;parent.document.location.hash = &#034;&#039; + (stateID == _self().defaultStateID ? &#039;#&#039; : stateID) + &#039;&#034;; &#034;<br />
of the _setHash function in the line <br />
&#034;frames[_iframeID].document.write(&#039;parent.document.location.hash = &#034;&#039; + (stateID == _self().defaultStateID ? &#039;#&#039; : stateID) + &#039;&#034;; /* Wait for IE to impose its title before setting ours. */setTimeout( function(){ parent.<span class="caps">EXANIMO</span>.managers.StateManager._updateIFrame(&#034;&#039; + stateID + &#039;&#034;); }, 10);&#039;);<br />
&#034; </p>
<p>it work perfect in the explorer but don&#039;t send de &#034;#something&#034; to the address bar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rvntone</title>
		<link>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-132</link>
		<dc:creator>Rvntone</dc:creator>
		<pubDate>Sat, 05 Jan 2008 22:00:41 +0000</pubDate>
		<guid>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-132</guid>
		<description>	&lt;p&gt;I have a problem with the ie7, I had to click twice the back button every time to return to the preview page. the code works perfect in FF.&lt;br /&gt;
The code I used is:&lt;/p&gt;

	&lt;p&gt;var StateManager = &lt;span class="caps"&gt;EXANIMO&lt;/span&gt;.managers.StateManager;&lt;/p&gt;

	&lt;p&gt;StateManager.onstatechange = function(e)&lt;br /&gt;
{&lt;br /&gt;
a=e.id;&lt;br /&gt;
switch (a)&lt;br /&gt;
{&lt;br /&gt;
case &#8216;busqueda&#8217;:&lt;br /&gt;
case &#8216;defaultState&#8217;:&lt;br /&gt;
selecpesta(1);&lt;br /&gt;
new Ajax.Updater(&#8216;centerajaxupdate&#8217;,...  &#8220;page1&#8221; ... parameters:Form.serialize(document), requestHeaders:[&#8216;X-Update&#8217;,&#8216;centerajaxupdate&#8217;]}) ;&lt;br /&gt;
StateManager.setTitle(&#8216;&lt;span class="caps"&gt;TU-CARGA&lt;/span&gt;.&lt;span class="caps"&gt;COM&lt;/span&gt; :: &#8216; + &#8216;Envia tu carga&#8217;);&lt;br /&gt;
break;&lt;br /&gt;
case &#8216;perfil&#8217;:&lt;br /&gt;
selecpesta(2);&lt;br /&gt;
new Ajax.Updater(&#8216;centerajaxupdate&#8217;,...  &#8220;page2&#8221; ... parameters:Form.serialize(document), requestHeaders:[&#8216;X-Update&#8217;,&#8216;centerajaxupdate&#8217;]}) ;&lt;br /&gt;
StateManager.setTitle(&#8216;&lt;span class="caps"&gt;TU-CARGA&lt;/span&gt;.&lt;span class="caps"&gt;COM&lt;/span&gt; :: &#8216; + &#8216;Tu perfil&#8217;);&lt;br /&gt;
break;&lt;br /&gt;
....&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;

	&lt;p&gt;cargado= function(){ // onload function
    StateManager.initialize();
    document.getElementById(&#8216;busqueda&#8217;).onclick = function()
    {
        StateManager.setState(&#8216;busqueda&#8217;);
        return false;
     }
     ....&lt;br /&gt;
} &lt;/p&gt;

	&lt;p&gt;what is worng?&lt;/p&gt;

	&lt;p&gt;PD: sorry for the code, I tried to index it but I coudn&#8217;t. :S&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>I have a problem with the ie7, I had to click twice the back button every time to return to the preview page. the code works perfect in FF.<br />
The code I used is:</p>
<p>var StateManager = <span class="caps">EXANIMO</span>.managers.StateManager;</p>
<p>StateManager.onstatechange = function(e)<br />
{<br />
a=e.id;<br />
switch (a)<br />
{<br />
case &#039;busqueda&#039;:<br />
case &#039;defaultState&#039;:<br />
selecpesta(1);<br />
new Ajax.Updater(&#039;centerajaxupdate&#039;,&#8230;  &#034;page1&#034; &#8230; parameters:Form.serialize(document), requestHeaders:[&#039;X-Update&#039;,&#039;centerajaxupdate&#039;]}) ;<br />
StateManager.setTitle(&#039;<span class="caps">TU-CARGA</span>.<span class="caps">COM</span> :: &#039; + &#039;Envia tu carga&#039;);<br />
break;<br />
case &#039;perfil&#039;:<br />
selecpesta(2);<br />
new Ajax.Updater(&#039;centerajaxupdate&#039;,&#8230;  &#034;page2&#034; &#8230; parameters:Form.serialize(document), requestHeaders:[&#039;X-Update&#039;,&#039;centerajaxupdate&#039;]}) ;<br />
StateManager.setTitle(&#039;<span class="caps">TU-CARGA</span>.<span class="caps">COM</span> :: &#039; + &#039;Tu perfil&#039;);<br />
break;<br />
&#8230;.<br />
}<br />
}</p>
<p>cargado= function(){ // onload function<br />
    StateManager.initialize();<br />
    document.getElementById(&#039;busqueda&#039;).onclick = function()<br />
    {<br />
        StateManager.setState(&#039;busqueda&#039;);<br />
        return false;<br />
     }<br />
     &#8230;.<br />
} </p>
<p>what is worng?</p>
<p>PD: sorry for the code, I tried to index it but I coudn&#039;t. :S</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles</title>
		<link>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-128</link>
		<dc:creator>Charles</dc:creator>
		<pubDate>Thu, 06 Dec 2007 21:00:19 +0000</pubDate>
		<guid>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-128</guid>
		<description>	&lt;p&gt;I&#8217;m in the process of making this use prototype and taking out the flash support. I&#8217;ll gladly post my changes when I&#8217;m finished if you want them. Just shoot me an email:&lt;/p&gt;

	&lt;p&gt;my name at the website linked to my name.&lt;/p&gt;

	&lt;p&gt;Also going to fix a bug with IE6 and firing the state change twice.&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>I&#039;m in the process of making this use prototype and taking out the flash support. I&#039;ll gladly post my changes when I&#039;m finished if you want them. Just shoot me an email:</p>
<p>my name at the website linked to my name.</p>
<p>Also going to fix a bug with IE6 and firing the state change twice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle</title>
		<link>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-112</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Fri, 21 Sep 2007 03:48:24 +0000</pubDate>
		<guid>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-112</guid>
		<description>	&lt;p&gt;Hi,&lt;/p&gt;

	&lt;p&gt;I wanted to use statemanager in a private admin area using only FF and IE7, so I remade it without all the Safari stuff and so on. You could probably halve the file size if you didn&#8217;t code it so fancy with private variables and such.&lt;/p&gt;

	&lt;p&gt;But anyway, what I made works fine except when you leave and go back to the page in IE7 only the last state is remembered. Basically the iframe&#8217;s history is lost. How exactly does your statemanager manage to retain it?&lt;/p&gt;

	&lt;p&gt;Also, I experienced fan&#8217;s infinite defaultState loop in IE7 in one of the ajax examples while constantly going backwards and forwards between pages and states. I don&#8217;t know how to recreate it.&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I wanted to use statemanager in a private admin area using only FF and IE7, so I remade it without all the Safari stuff and so on. You could probably halve the file size if you didn&#039;t code it so fancy with private variables and such.</p>
<p>But anyway, what I made works fine except when you leave and go back to the page in IE7 only the last state is remembered. Basically the iframe&#039;s history is lost. How exactly does your statemanager manage to retain it?</p>
<p>Also, I experienced fan&#039;s infinite defaultState loop in IE7 in one of the ajax examples while constantly going backwards and forwards between pages and states. I don&#039;t know how to recreate it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webstart</title>
		<link>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-105</link>
		<dc:creator>webstart</dc:creator>
		<pubDate>Thu, 06 Sep 2007 19:33:02 +0000</pubDate>
		<guid>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-105</guid>
		<description>	&lt;p&gt;Can StateManager handle the following situation?&lt;br /&gt;
1. I have &lt;span class="caps"&gt;AJAX&lt;/span&gt; function to change some dhtml on the page.&lt;br /&gt;
2. User enters the address in the browser and navigates away from the page.&lt;br /&gt;
3. Then user realizes that he made a mistake, he hits the &#8220;Back&#8221; button to go back.&lt;br /&gt;
4. I want to be able to show the page/content where they left off (after the &lt;span class="caps"&gt;AJAX&lt;/span&gt; update in 1)&lt;/p&gt;

	&lt;p&gt;Can StateManager do this? and How?&lt;/p&gt;

	&lt;p&gt;Thanks in advance.&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>Can StateManager handle the following situation?<br />
1. I have <span class="caps">AJAX</span> function to change some dhtml on the page.<br />
2. User enters the address in the browser and navigates away from the page.<br />
3. Then user realizes that he made a mistake, he hits the &#034;Back&#034; button to go back.<br />
4. I want to be able to show the page/content where they left off (after the <span class="caps">AJAX</span> update in 1)</p>
<p>Can StateManager do this? and How?</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webbles</title>
		<link>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-93</link>
		<dc:creator>webbles</dc:creator>
		<pubDate>Mon, 06 Aug 2007 21:45:35 +0000</pubDate>
		<guid>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-93</guid>
		<description>	&lt;p&gt;I just opened up the example site in Safari 3 and it doesn&#8217;t seem to work as expected.  Just thought you&#8217;d like to know.&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>I just opened up the example site in Safari 3 and it doesn&#039;t seem to work as expected.  Just thought you&#039;d like to know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael McDaniel</title>
		<link>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-91</link>
		<dc:creator>Michael McDaniel</dc:creator>
		<pubDate>Mon, 30 Jul 2007 22:37:07 +0000</pubDate>
		<guid>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-91</guid>
		<description>	&lt;p&gt;Thanks, Matthew!  I appreciate that quick response!  Fixing that did the trick!&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>Thanks, Matthew!  I appreciate that quick response!  Fixing that did the trick!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yogesh</title>
		<link>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-86</link>
		<dc:creator>yogesh</dc:creator>
		<pubDate>Tue, 17 Jul 2007 23:25:44 +0000</pubDate>
		<guid>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-86</guid>
		<description>	&lt;p&gt;I want to hide url inaddress bar using this how can it possible&lt;br /&gt;
suppose in my page there one line home and when i click on it&lt;br /&gt;
page open in same window but url must not change in address bar&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>I want to hide url inaddress bar using this how can it possible<br />
suppose in my page there one line home and when i click on it<br />
page open in same window but url must not change in address bar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matthew</title>
		<link>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-84</link>
		<dc:creator>matthew</dc:creator>
		<pubDate>Tue, 17 Jul 2007 00:07:26 +0000</pubDate>
		<guid>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-84</guid>
		<description>	&lt;p&gt;@Michael:&lt;br /&gt;
The StateManager doesn&#8217;t seem to like the fact that your link IDs match your state IDs.  If you make sure that the id attributes of your anchor tags are different than your state IDs, everything works fine.  Thanks for the simplest-case reduction, btw.&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>@Michael:<br />
The StateManager doesn&#039;t seem to like the fact that your link IDs match your state IDs.  If you make sure that the id attributes of your anchor tags are different than your state IDs, everything works fine.  Thanks for the simplest-case reduction, btw.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael McDaniel</title>
		<link>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-82</link>
		<dc:creator>Michael McDaniel</dc:creator>
		<pubDate>Mon, 16 Jul 2007 18:10:25 +0000</pubDate>
		<guid>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/#comment-82</guid>
		<description>	&lt;p&gt;I also am having trouble with IE6/7.  I have to hit the back button 3 times to get back to the previous page.  Here&#8217;s my simple file:&lt;/p&gt;

	&lt;p&gt;http://michaelmcdaniel.net/files/statemanagerTest.html&lt;/p&gt;

	&lt;p&gt;Any advice?  Thanks!&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>I also am having trouble with IE6/7.  I have to hit the back button 3 times to get back to the previous page.  Here&#039;s my simple file:</p>
<p><a href="http://michaelmcdaniel.net/files/statemanagerTest.html" rel="nofollow">http://michaelmcdaniel.net/files/statemanagerTest.html</a></p>
<p>Any advice?  Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
