<?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>Working with AJAX in Magento | Subesh Pokhrel&#039;s Blog - Magento Development Tips,PHP,Google Maps</title>
	<atom:link href="http://subesh.com.np/2009/11/working-with-ajax-in-magento/feed/" rel="self" type="application/rss+xml" />
	<link>http://subesh.com.np/2009/11/working-with-ajax-in-magento/</link>
	<description>PHP &#38; Magento Tips &#38; Tutorials</description>
	<lastBuildDate>Wed, 04 Aug 2010 07:24:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Working with AJAX in Magento | Subesh Pokhrel&#039;s Blog - Magento Development Tips,PHP,Google Maps</title>
		<link>http://subesh.com.np/2009/11/working-with-ajax-in-magento/comment-page-1/#comment-431</link>
		<dc:creator>Sreekanth Dayanand</dc:creator>
		<pubDate>Thu, 01 Jul 2010 16:17:03 +0000</pubDate>
		<guid isPermaLink="false">http://subesh.com.np/?p=82#comment-431</guid>
		<description>It didnt work initially for me.
After digging in /js/mage/adminhtml/loader.js
i had to append paramaeters with &amp;form_key=getFormKey();?&gt;

like this

parameters: &#039;QueryString&amp;form_key=getFormKey();?&gt;&#039;

Let me know if this is because of some change in new magento version or if i missed any step.Anyway its working for me now

thanks for a great post.</description>
		<content:encoded><![CDATA[<p>It didnt work initially for me.<br />
After digging in /js/mage/adminhtml/loader.js<br />
i had to append paramaeters with &amp;form_key=getFormKey();?&gt;</p>
<p>like this</p>
<p>parameters: &#8216;QueryString&amp;form_key=getFormKey();?&gt;&#8217;</p>
<p>Let me know if this is because of some change in new magento version or if i missed any step.Anyway its working for me now</p>
<p>thanks for a great post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Working with AJAX in Magento | Subesh Pokhrel&#039;s Blog - Magento Development Tips,PHP,Google Maps</title>
		<link>http://subesh.com.np/2009/11/working-with-ajax-in-magento/comment-page-1/#comment-424</link>
		<dc:creator>Subesh Pokhrel</dc:creator>
		<pubDate>Thu, 03 Jun 2010 10:36:42 +0000</pubDate>
		<guid isPermaLink="false">http://subesh.com.np/?p=82#comment-424</guid>
		<description>Hi,
I don&#039;t think you code will show the content, easiest way to load content is write only this in your controller

[source language=&quot;php&quot;]
$this-&gt;loadLayout()-&gt;renderLayout();
[/source]

And next prepare a layout file and follow the instruction above in the post. 
Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I don&#8217;t think you code will show the content, easiest way to load content is write only this in your controller</p>
<pre class="brush: php;">
$this-&gt;loadLayout()-&gt;renderLayout();
</pre>
<p>And next prepare a layout file and follow the instruction above in the post.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Working with AJAX in Magento | Subesh Pokhrel&#039;s Blog - Magento Development Tips,PHP,Google Maps</title>
		<link>http://subesh.com.np/2009/11/working-with-ajax-in-magento/comment-page-1/#comment-420</link>
		<dc:creator>impi</dc:creator>
		<pubDate>Wed, 26 May 2010 13:57:50 +0000</pubDate>
		<guid isPermaLink="false">http://subesh.com.np/?p=82#comment-420</guid>
		<description>Hi Subesh, 

I want to firstly say thank you for your blog, really everytime I read something from you, you can be sure that I have learned something, and I am very greatful for that.

Bro, I&#039;m trying to get this ajax working, and I have override my controller and it works.

I have added all the scripts and as far as I can see this all is working too, but bro, can you tell me what I should make the href?
I have a bunch of tabs..and they load content dynamically but, my page load times is taking a hit, so some of these tabs I would like to bring in the content with ajax.

My controller function looks like this:
[source language=&quot;php&quot;]
public function actionAction()
		{
			error_log(&#039;Begin action&#039;);
			
			//Get current layout state
			$this-&gt;loadLayout();
			
			$this-&gt;getLayout()-&gt;createBlock(
			&#039;Mage_Core_Block_Template&#039;,
			&#039;Mage_Catalog_Block_Category_View&#039;,
				array(&#039;template&#039; =&gt; &#039;catalog/category/view.phtml&#039;)
			);
			
			//$this-&gt;getLayout()-&gt;createBlock(&#039;footer&#039;)-&gt;append($block);
			
			//Release layout stream
			$this-&gt;renderLayout();
			
	    	
			error_log(&#039;End action&#039;);
			
		}
[/source]
Can you tell me if that is correct?

Thank you so very much man, I really appreciate it!

impi</description>
		<content:encoded><![CDATA[<p>Hi Subesh, </p>
<p>I want to firstly say thank you for your blog, really everytime I read something from you, you can be sure that I have learned something, and I am very greatful for that.</p>
<p>Bro, I&#8217;m trying to get this ajax working, and I have override my controller and it works.</p>
<p>I have added all the scripts and as far as I can see this all is working too, but bro, can you tell me what I should make the href?<br />
I have a bunch of tabs..and they load content dynamically but, my page load times is taking a hit, so some of these tabs I would like to bring in the content with ajax.</p>
<p>My controller function looks like this:</p>
<pre class="brush: php;">
public function actionAction()
		{
			error_log('Begin action');

			//Get current layout state
			$this-&amp;gt;loadLayout();

			$this-&amp;gt;getLayout()-&amp;gt;createBlock(
			'Mage_Core_Block_Template',
			'Mage_Catalog_Block_Category_View',
				array('template' =&amp;gt; 'catalog/category/view.phtml')
			);

			//$this-&amp;gt;getLayout()-&amp;gt;createBlock('footer')-&amp;gt;append($block);

			//Release layout stream
			$this-&amp;gt;renderLayout();

			error_log('End action');

		}
</pre>
<p>Can you tell me if that is correct?</p>
<p>Thank you so very much man, I really appreciate it!</p>
<p>impi</p>
]]></content:encoded>
	</item>
	<item>
		<title>Working with AJAX in Magento | Subesh Pokhrel&#039;s Blog - Magento Development Tips,PHP,Google Maps</title>
		<link>http://subesh.com.np/2009/11/working-with-ajax-in-magento/comment-page-1/#comment-417</link>
		<dc:creator>Subesh Pokhrel</dc:creator>
		<pubDate>Thu, 20 May 2010 11:18:16 +0000</pubDate>
		<guid isPermaLink="false">http://subesh.com.np/?p=82#comment-417</guid>
		<description>Madhu, I think you have done the &quot;difficult&quot; part....if you have successfully added product to cart!
Here&#039;s one tip for your issue, but do you have controller of your own? If yes then prepare a layout for that controller and assign block &amp; template and... if you can access cart session as you say then showing a list of product added should not be a problem. Please the 4th and 5th snippet of code above.

Thanks.</description>
		<content:encoded><![CDATA[<p>Madhu, I think you have done the &#8220;difficult&#8221; part&#8230;.if you have successfully added product to cart!<br />
Here&#8217;s one tip for your issue, but do you have controller of your own? If yes then prepare a layout for that controller and assign block &#038; template and&#8230; if you can access cart session as you say then showing a list of product added should not be a problem. Please the 4th and 5th snippet of code above.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Working with AJAX in Magento | Subesh Pokhrel&#039;s Blog - Magento Development Tips,PHP,Google Maps</title>
		<link>http://subesh.com.np/2009/11/working-with-ajax-in-magento/comment-page-1/#comment-416</link>
		<dc:creator>Madhu</dc:creator>
		<pubDate>Thu, 20 May 2010 04:50:13 +0000</pubDate>
		<guid isPermaLink="false">http://subesh.com.np/?p=82#comment-416</guid>
		<description>Hi..was going through ur ajax post..right now i have a problem..
I am developing ajax add to cart..I have almost done it to say..I am able to add products to cart and again I am able to read the sessions of cart to mycart widget..
the problem comes here..how do  i read the image of specific product and I have to add a delete option..well  u know mycart operations..
So tel me how to get the image and delete operation..
Or better to say how to access sidebar.phtml from root folder of magento..either one will solve the problem..</description>
		<content:encoded><![CDATA[<p>Hi..was going through ur ajax post..right now i have a problem..<br />
I am developing ajax add to cart..I have almost done it to say..I am able to add products to cart and again I am able to read the sessions of cart to mycart widget..<br />
the problem comes here..how do  i read the image of specific product and I have to add a delete option..well  u know mycart operations..<br />
So tel me how to get the image and delete operation..<br />
Or better to say how to access sidebar.phtml from root folder of magento..either one will solve the problem..</p>
]]></content:encoded>
	</item>
	<item>
		<title>Working with AJAX in Magento | Subesh Pokhrel&#039;s Blog - Magento Development Tips,PHP,Google Maps</title>
		<link>http://subesh.com.np/2009/11/working-with-ajax-in-magento/comment-page-1/#comment-396</link>
		<dc:creator>Nedo_17</dc:creator>
		<pubDate>Thu, 29 Apr 2010 15:32:09 +0000</pubDate>
		<guid isPermaLink="false">http://subesh.com.np/?p=82#comment-396</guid>
		<description>I worked it out, and it&#039;s working beautifully,  thanks for the great info</description>
		<content:encoded><![CDATA[<p>I worked it out, and it&#8217;s working beautifully,  thanks for the great info</p>
]]></content:encoded>
	</item>
	<item>
		<title>Working with AJAX in Magento | Subesh Pokhrel&#039;s Blog - Magento Development Tips,PHP,Google Maps</title>
		<link>http://subesh.com.np/2009/11/working-with-ajax-in-magento/comment-page-1/#comment-394</link>
		<dc:creator>Subesh Pokhrel</dc:creator>
		<pubDate>Thu, 29 Apr 2010 07:51:17 +0000</pubDate>
		<guid isPermaLink="false">http://subesh.com.np/?p=82#comment-394</guid>
		<description>You can attach to some existing module.. It depends upon what you need.</description>
		<content:encoded><![CDATA[<p>You can attach to some existing module.. It depends upon what you need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Working with AJAX in Magento | Subesh Pokhrel&#039;s Blog - Magento Development Tips,PHP,Google Maps</title>
		<link>http://subesh.com.np/2009/11/working-with-ajax-in-magento/comment-page-1/#comment-393</link>
		<dc:creator>Nedo_17</dc:creator>
		<pubDate>Thu, 29 Apr 2010 07:48:05 +0000</pubDate>
		<guid isPermaLink="false">http://subesh.com.np/?p=82#comment-393</guid>
		<description>hey, Thanks for the great info
i&#039;m a new developer in magento and i was wondering, if i should create a custom module for the action and layout, or just attach it to some other module...?

thanks</description>
		<content:encoded><![CDATA[<p>hey, Thanks for the great info<br />
i&#8217;m a new developer in magento and i was wondering, if i should create a custom module for the action and layout, or just attach it to some other module&#8230;?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Working with AJAX in Magento | Subesh Pokhrel&#039;s Blog - Magento Development Tips,PHP,Google Maps</title>
		<link>http://subesh.com.np/2009/11/working-with-ajax-in-magento/comment-page-1/#comment-386</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Tue, 20 Apr 2010 08:49:36 +0000</pubDate>
		<guid isPermaLink="false">http://subesh.com.np/?p=82#comment-386</guid>
		<description>Hi,
thanks for your reply. I&#039;ve now got it working, I was just missing the [layout][updates]-block in my config.xml for the frontend.

Thanks again, and great article.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
thanks for your reply. I&#8217;ve now got it working, I was just missing the [layout][updates]-block in my config.xml for the frontend.</p>
<p>Thanks again, and great article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Working with AJAX in Magento | Subesh Pokhrel&#039;s Blog - Magento Development Tips,PHP,Google Maps</title>
		<link>http://subesh.com.np/2009/11/working-with-ajax-in-magento/comment-page-1/#comment-384</link>
		<dc:creator>Subesh Pokhrel</dc:creator>
		<pubDate>Mon, 19 Apr 2010 07:01:41 +0000</pubDate>
		<guid isPermaLink="false">http://subesh.com.np/?p=82#comment-384</guid>
		<description>For Example if you viewing category view page then

Router: catalog
Controller: category
Action : viewAction.

 Thanks.</description>
		<content:encoded><![CDATA[<p>For Example if you viewing category view page then</p>
<p>Router: catalog<br />
Controller: category<br />
Action : viewAction.</p>
<p> Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
