<?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 AJAX with your WordPress Plugin</title>
	<atom:link href="http://www.devlounge.net/code/using-ajax-with-your-wordpress-plugin/feed" rel="self" type="application/rss+xml" />
	<link>http://www.devlounge.net/code/using-ajax-with-your-wordpress-plugin</link>
	<description>Design, Develop, and Grow</description>
	<lastBuildDate>Wed, 10 Mar 2010 15:25:07 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Windows Wallpapers</title>
		<link>http://www.devlounge.net/code/using-ajax-with-your-wordpress-plugin/comment-page-1#comment-181823</link>
		<dc:creator>Windows Wallpapers</dc:creator>
		<pubDate>Mon, 07 Dec 2009 00:41:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/using-ajax-with-your-wordpress-plugin#comment-181823</guid>
		<description>But, what is the benefit by using AJAX for SEO? Does Googlebot can&#039;t read another except HTML?</description>
		<content:encoded><![CDATA[<p>But, what is the benefit by using AJAX for SEO? Does Googlebot can&#8217;t read another except HTML?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris - Bermuda Triangle</title>
		<link>http://www.devlounge.net/code/using-ajax-with-your-wordpress-plugin/comment-page-1#comment-181776</link>
		<dc:creator>Chris - Bermuda Triangle</dc:creator>
		<pubDate>Thu, 03 Dec 2009 08:50:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/using-ajax-with-your-wordpress-plugin#comment-181776</guid>
		<description>@hokya Thanks hokya, by the way how can i attach google ads to wordpress? And is it even possible?</description>
		<content:encoded><![CDATA[<p>@hokya Thanks hokya, by the way how can i attach google ads to wordpress? And is it even possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP Quebec WordPress Development &#124; dropthedigibomb.com</title>
		<link>http://www.devlounge.net/code/using-ajax-with-your-wordpress-plugin/comment-page-1#comment-181549</link>
		<dc:creator>PHP Quebec WordPress Development &#124; dropthedigibomb.com</dc:creator>
		<pubDate>Wed, 04 Nov 2009 02:03:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/using-ajax-with-your-wordpress-plugin#comment-181549</guid>
		<description>[...] Using AJAX with your WordPress Plugin, also at DevLounce.net [...]</description>
		<content:encoded><![CDATA[<p>[...] Using AJAX with your WordPress Plugin, also at DevLounce.net [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hokya</title>
		<link>http://www.devlounge.net/code/using-ajax-with-your-wordpress-plugin/comment-page-1#comment-181488</link>
		<dc:creator>hokya</dc:creator>
		<pubDate>Wed, 28 Oct 2009 02:37:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/using-ajax-with-your-wordpress-plugin#comment-181488</guid>
		<description>i have recently created new WP Plugin named AJAX Comment Page, perhaps you would try it for me on http://mr.hokya.com/ajax-comment-page/</description>
		<content:encoded><![CDATA[<p>i have recently created new WP Plugin named AJAX Comment Page, perhaps you would try it for me on <a href="http://mr.hokya.com/ajax-comment-page/" rel="nofollow">http://mr.hokya.com/ajax-comment-page/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.devlounge.net/code/using-ajax-with-your-wordpress-plugin/comment-page-1#comment-181361</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 20 Oct 2009 17:44:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/using-ajax-with-your-wordpress-plugin#comment-181361</guid>
		<description>The method demonstrated above is overly complicated.  WordPress has an AJAX handler at wp-admin/admin-ajax.php that your plugin can (should) piggy back on.  This saves you the trouble of having to know where wp-config.php is (for a sufficiently flexible plugin).

In brief:

add_action(&#039;wp_ajax_my_query&#039;, &#039;my_query_handler&#039;);
function my_query_handler() {
    // Pull input out of $_POST and spit out your JSON, XML, etc...
   die;  // die at the end so WP Core will cease trying to handle the request.
}

The above function would then be accessible via $blog_url . &#039;/wp-admin/admin-ajax.php?action=my_query&amp;...&#039;.

For additional detail:
http://codex.wordpress.org/AJAX_in_Plugins</description>
		<content:encoded><![CDATA[<p>The method demonstrated above is overly complicated.  WordPress has an AJAX handler at wp-admin/admin-ajax.php that your plugin can (should) piggy back on.  This saves you the trouble of having to know where wp-config.php is (for a sufficiently flexible plugin).</p>
<p>In brief:</p>
<p>add_action(&#8216;wp_ajax_my_query&#8217;, &#8216;my_query_handler&#8217;);<br />
function my_query_handler() {<br />
    // Pull input out of $_POST and spit out your JSON, XML, etc&#8230;<br />
   die;  // die at the end so WP Core will cease trying to handle the request.<br />
}</p>
<p>The above function would then be accessible via $blog_url . &#8216;/wp-admin/admin-ajax.php?action=my_query&amp;&#8230;&#8217;.</p>
<p>For additional detail:<br />
<a href="http://codex.wordpress.org/AJAX_in_Plugins" rel="nofollow">http://codex.wordpress.org/AJAX_in_Plugins</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Marden</title>
		<link>http://www.devlounge.net/code/using-ajax-with-your-wordpress-plugin/comment-page-1#comment-181359</link>
		<dc:creator>Eric Marden</dc:creator>
		<pubDate>Tue, 20 Oct 2009 15:53:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/using-ajax-with-your-wordpress-plugin#comment-181359</guid>
		<description>This is absolutely the wrong way to do AJAX in a WordPress plugin. 

Do not follow these instructions. Instead study the codex carefully for the correct way of adding AJAX to your plugins: http://codex.wordpress.org/AJAX_in_Plugins</description>
		<content:encoded><![CDATA[<p>This is absolutely the wrong way to do AJAX in a WordPress plugin. </p>
<p>Do not follow these instructions. Instead study the codex carefully for the correct way of adding AJAX to your plugins: <a href="http://codex.wordpress.org/AJAX_in_Plugins" rel="nofollow">http://codex.wordpress.org/AJAX_in_Plugins</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Essential Wordpress Plugin Development Resources, Tutorials and Guides : Speckyboy Design Magazine</title>
		<link>http://www.devlounge.net/code/using-ajax-with-your-wordpress-plugin/comment-page-1#comment-181214</link>
		<dc:creator>Essential Wordpress Plugin Development Resources, Tutorials and Guides : Speckyboy Design Magazine</dc:creator>
		<pubDate>Fri, 09 Oct 2009 08:42:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/using-ajax-with-your-wordpress-plugin#comment-181214</guid>
		<description>[...] and Database Interaction &#187; 10. Using JavaScript and CSS with your WordPress Plugin &#187; 11. Using AJAX with your WordPress Plugin &#187; 12. Releasing and Promoting Your WordPress Plugin [...]</description>
		<content:encoded><![CDATA[<p>[...] and Database Interaction &#187; 10. Using JavaScript and CSS with your WordPress Plugin &#187; 11. Using AJAX with your WordPress Plugin &#187; 12. Releasing and Promoting Your WordPress Plugin [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blutarsky</title>
		<link>http://www.devlounge.net/code/using-ajax-with-your-wordpress-plugin/comment-page-1#comment-180434</link>
		<dc:creator>Blutarsky</dc:creator>
		<pubDate>Mon, 17 Aug 2009 17:24:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/using-ajax-with-your-wordpress-plugin#comment-180434</guid>
		<description>Got the solution. Ajax needs to be initialized with wp-load.php</description>
		<content:encoded><![CDATA[<p>Got the solution. Ajax needs to be initialized with wp-load.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blutarsky</title>
		<link>http://www.devlounge.net/code/using-ajax-with-your-wordpress-plugin/comment-page-1#comment-180385</link>
		<dc:creator>Blutarsky</dc:creator>
		<pubDate>Fri, 14 Aug 2009 10:19:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/using-ajax-with-your-wordpress-plugin#comment-180385</guid>
		<description>Hi there my friend,
I&#039;ve found this interesting article when struggling to inject some content into my Wordpress index.php document.

Basically I have installed a plugin to load some content in the page above. Very slow.

So I thought I could use the asynchronous load technique, using JQuery.

What i did is:
1) prepare a DIV container to hold injected data in index.php
2) invoke jQuery from index.php to load an external php file that will call the very slow function.

The problem is that it looks like the external php file loaded with  jQuery ignores the Wordpress install, as it can&#039;t &quot;see&quot; Wordpress; as a result when calling the function in the external php file, an error is issued: &quot;Fatal error: Call to undefined function&quot;.

I have attempted succesfully to load data into the placeholder, using the external php file, using &quot;include&quot; and/or &quot;require&quot; functions, so the external php file would do the job if only jQuery (or Javascript?) would be capable to &quot;see&quot; Wordpress data.

I have tried to declare

require_once(&quot;../../../../wp-config.php&quot;);

but I get some errors....

What do you think? Do you believe Javscript or jQuery are ignoring Wordpress, so this is why the invoked function is failing?

If so how to &quot;inform&quot; Javascript/jQuery to &quot;see&quot; WP?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi there my friend,<br />
I&#8217;ve found this interesting article when struggling to inject some content into my Wordpress index.php document.</p>
<p>Basically I have installed a plugin to load some content in the page above. Very slow.</p>
<p>So I thought I could use the asynchronous load technique, using JQuery.</p>
<p>What i did is:<br />
1) prepare a DIV container to hold injected data in index.php<br />
2) invoke jQuery from index.php to load an external php file that will call the very slow function.</p>
<p>The problem is that it looks like the external php file loaded with  jQuery ignores the Wordpress install, as it can&#8217;t &#8220;see&#8221; Wordpress; as a result when calling the function in the external php file, an error is issued: &#8220;Fatal error: Call to undefined function&#8221;.</p>
<p>I have attempted succesfully to load data into the placeholder, using the external php file, using &#8220;include&#8221; and/or &#8220;require&#8221; functions, so the external php file would do the job if only jQuery (or Javascript?) would be capable to &#8220;see&#8221; Wordpress data.</p>
<p>I have tried to declare</p>
<p>require_once(&#8220;../../../../wp-config.php&#8221;);</p>
<p>but I get some errors&#8230;.</p>
<p>What do you think? Do you believe Javscript or jQuery are ignoring Wordpress, so this is why the invoked function is failing?</p>
<p>If so how to &#8220;inform&#8221; Javascript/jQuery to &#8220;see&#8221; WP?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zareef Ahmed</title>
		<link>http://www.devlounge.net/code/using-ajax-with-your-wordpress-plugin/comment-page-1#comment-180137</link>
		<dc:creator>Zareef Ahmed</dc:creator>
		<pubDate>Wed, 29 Jul 2009 07:23:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/using-ajax-with-your-wordpress-plugin#comment-180137</guid>
		<description>@mason sedning path information using a POST can open a critical security hole.</description>
		<content:encoded><![CDATA[<p>@mason sedning path information using a POST can open a critical security hole.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blog Marketing</title>
		<link>http://www.devlounge.net/code/using-ajax-with-your-wordpress-plugin/comment-page-1#comment-180135</link>
		<dc:creator>Blog Marketing</dc:creator>
		<pubDate>Tue, 28 Jul 2009 21:35:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/using-ajax-with-your-wordpress-plugin#comment-180135</guid>
		<description>I am just learning to create my own wordpress plugins and this has helped me imensly</description>
		<content:encoded><![CDATA[<p>I am just learning to create my own wordpress plugins and this has helped me imensly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tatil</title>
		<link>http://www.devlounge.net/code/using-ajax-with-your-wordpress-plugin/comment-page-1#comment-180089</link>
		<dc:creator>tatil</dc:creator>
		<pubDate>Wed, 22 Jul 2009 08:27:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/using-ajax-with-your-wordpress-plugin#comment-180089</guid>
		<description>thank you very good.</description>
		<content:encoded><![CDATA[<p>thank you very good.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
