<?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/"
	>
<channel>
	<title>Comments on: Using the StateManager in AJAX Apps</title>
	<atom:link href="http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/feed/" rel="self" type="application/rss+xml" />
	<link>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/</link>
	<description>where matthew tretter types stuff</description>
	<pubDate>Wed, 10 Mar 2010 07:38:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Cadpax</title>
		<link>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/comment-page-1/#comment-3337</link>
		<dc:creator>Cadpax</dc:creator>
		<pubDate>Thu, 17 Sep 2009 15:42:33 +0000</pubDate>
		<guid isPermaLink="false">http://v2-5.exanimo.com/?p=12#comment-3337</guid>
		<description>Okay. After hours Problem is solved.

Links look like this: &lt;a href="#page=ViewDamn&amp;Data=122312" rel="nofollow"&gt;

http://paste.bradleygill.com/index.php?paste_id=20350

Now i can call a switch-page with Ajax and build-in parameters without the problme, that the hashtag is the ID of the link.

Works fine.


@Rvntone Should solve your Problem</description>
		<content:encoded><![CDATA[<p>Okay. After hours Problem is solved.</p>
<p>Links look like this: <a href="#page=ViewDamn&amp;Data=122312" rel="nofollow"></p>
<p></a><a href="http://paste.bradleygill.com/index.php?paste_id=20350" rel="nofollow">http://paste.bradleygill.com/index.php?paste_id=20350</a></p>
<p>Now i can call a switch-page with Ajax and build-in parameters without the problme, that the hashtag is the ID of the link.</p>
<p>Works fine.</p>
<p>@Rvntone Should solve your Problem</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cadpax</title>
		<link>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/comment-page-1/#comment-3332</link>
		<dc:creator>Cadpax</dc:creator>
		<pubDate>Thu, 17 Sep 2009 12:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://v2-5.exanimo.com/?p=12#comment-3332</guid>
		<description>Well, i'm using this code and try to make a more dynamicly framework for me, but got one big problem in the ie7.
    I have to click 2 or three times, to jump him back to the last page. Deeplinking don't work too, but isn't necessary.

    Bit of Code will be found: http://paste.bradleygill.com/index.php?paste_id=20317

    In FF 2/3, Opera 9.6/10 everything works absolutely fine

    Anyone ideas?!</description>
		<content:encoded><![CDATA[<p>Well, i&#039;m using this code and try to make a more dynamicly framework for me, but got one big problem in the ie7.<br />
    I have to click 2 or three times, to jump him back to the last page. Deeplinking don&#039;t work too, but isn&#039;t necessary.</p>
<p>    Bit of Code will be found: <a href="http://paste.bradleygill.com/index.php?paste_id=20317" rel="nofollow">http://paste.bradleygill.com/index.php?paste_id=20317</a></p>
<p>    In FF 2/3, Opera 9.6/10 everything works absolutely fine</p>
<p>    Anyone ideas?!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/comment-page-1/#comment-2609</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 06 May 2009 08:14:39 +0000</pubDate>
		<guid isPermaLink="false">http://v2-5.exanimo.com/?p=12#comment-2609</guid>
		<description>REALLY AWESOME!
I've been looking for this for a week,
trying to hack together my own basically...
and then I finally found THIS!!!!!
We really needed this for our new satellite site,
and I spent HOURS fiddling with dsHistory, ug.
This is GOLD.
THANK YOU THANK YOU THANK YOU</description>
		<content:encoded><![CDATA[<p>REALLY AWESOME!<br />
I&#039;ve been looking for this for a week,<br />
trying to hack together my own basically&#8230;<br />
and then I finally found THIS!!!!!<br />
We really needed this for our new satellite site,<br />
and I spent HOURS fiddling with dsHistory, ug.<br />
This is GOLD.<br />
THANK YOU THANK YOU THANK YOU</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yysiow</title>
		<link>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/comment-page-1/#comment-1177</link>
		<dc:creator>yysiow</dc:creator>
		<pubDate>Thu, 16 Oct 2008 15:28:50 +0000</pubDate>
		<guid isPermaLink="false">http://v2-5.exanimo.com/?p=12#comment-1177</guid>
		<description>hi, 

     May I know all the link much put in window.onload function??? because i write another onlclick function,
     if all work well, but problem is , when i put in window.onload, URL can show xxx.php#name, but if i use my 
     onclick function, when click will show xxx.php#name, but after is will go to xxx.php#. 
     so when use firefox click back button, need to click two time. may i know do you have any sujection??
     Thanks..

	window.onload = function()
	{
		StateManager.initialize();
		
		document.getElementById('home-link').onclick = function()
		{
			StateManager.setState('index.right.main');
			return false;
		}

	}

        this is my function.

	function linkclick(statestring, titlestr){
		StateManager.setState(statestring);
		return false;	
	}</description>
		<content:encoded><![CDATA[<p>hi, </p>
<p>     May I know all the link much put in window.onload function??? because i write another onlclick function,<br />
     if all work well, but problem is , when i put in window.onload, URL can show xxx.php#name, but if i use my<br />
     onclick function, when click will show xxx.php#name, but after is will go to xxx.php#.<br />
     so when use firefox click back button, need to click two time. may i know do you have any sujection??<br />
     Thanks..</p>
<p>	window.onload = function()<br />
	{<br />
		StateManager.initialize();</p>
<p>		document.getElementById(&#039;home-link&#039;).onclick = function()<br />
		{<br />
			StateManager.setState(&#039;index.right.main&#039;);<br />
			return false;<br />
		}</p>
<p>	}</p>
<p>        this is my function.</p>
<p>	function linkclick(statestring, titlestr){<br />
		StateManager.setState(statestring);<br />
		return false;<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yonel Meza</title>
		<link>http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/comment-page-1/#comment-134</link>
		<dc:creator>Yonel Meza</dc:creator>
		<pubDate>Mon, 07 Jan 2008 05:38:15 +0000</pubDate>
		<guid isPermaLink="false">http://v2-5.exanimo.com/?p=12#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-page-1/#comment-132</link>
		<dc:creator>Rvntone</dc:creator>
		<pubDate>Sat, 05 Jan 2008 22:00:41 +0000</pubDate>
		<guid isPermaLink="false">http://v2-5.exanimo.com/?p=12#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-page-1/#comment-128</link>
		<dc:creator>Charles</dc:creator>
		<pubDate>Thu, 06 Dec 2007 21:00:19 +0000</pubDate>
		<guid isPermaLink="false">http://v2-5.exanimo.com/?p=12#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-page-1/#comment-112</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Fri, 21 Sep 2007 03:48:24 +0000</pubDate>
		<guid isPermaLink="false">http://v2-5.exanimo.com/?p=12#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-page-1/#comment-105</link>
		<dc:creator>webstart</dc:creator>
		<pubDate>Thu, 06 Sep 2007 19:33:02 +0000</pubDate>
		<guid isPermaLink="false">http://v2-5.exanimo.com/?p=12#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-page-1/#comment-93</link>
		<dc:creator>webbles</dc:creator>
		<pubDate>Mon, 06 Aug 2007 21:45:35 +0000</pubDate>
		<guid isPermaLink="false">http://v2-5.exanimo.com/?p=12#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>
</channel>
</rss>
