<?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: Submitting a Contact Form via AJAX From Your Facebook Page</title>
	<atom:link href="http://illuminatikarate.com/blog/submitting-a-contact-form-via-ajax-from-your-facebook-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://illuminatikarate.com/blog/submitting-a-contact-form-via-ajax-from-your-facebook-page/</link>
	<description>creative web design, development and marketing</description>
	<lastBuildDate>Wed, 16 May 2012 06:03:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Facebook Contact Forms with AJAX and PHP &#124; Gregory A McMullen</title>
		<link>http://illuminatikarate.com/blog/submitting-a-contact-form-via-ajax-from-your-facebook-page/#comment-3948</link>
		<dc:creator>Facebook Contact Forms with AJAX and PHP &#124; Gregory A McMullen</dc:creator>
		<pubDate>Fri, 07 Oct 2011 18:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://illuminatikarate.com/blog/?p=297#comment-3948</guid>
		<description>[...] Tweet    (function() { var po = document.createElement(&#039;script&#039;); po.type = &#039;text/javascript&#039;; po.async = true; po.src = &#039;https://apis.google.com/js/plusone.js&#039;; var s = document.getElementsByTagName(&#039;script&#039;)[0]; s.parentNode.insertBefore(po, s); })(); While working today, I was having an issue finding information on how to add a lead capture form on our Facebook Page. Luckily I stumbled across this amazing post! Submitting a Contact Form via AJAX From Your Facebook Page [...]</description>
		<content:encoded><![CDATA[<p>[...] Tweet    (function() { var po = document.createElement(&#039;script&#039;); po.type = &#039;text/javascript&#039;; po.async = true; po.src = &#039;<a href="https://apis.google.com/js/plusone.js&#038;#039" rel="nofollow">https://apis.google.com/js/plusone.js&#038;#039</a>;; var s = document.getElementsByTagName(&#039;script&#039;)[0]; s.parentNode.insertBefore(po, s); })(); While working today, I was having an issue finding information on how to add a lead capture form on our Facebook Page. Luckily I stumbled across this amazing post! Submitting a Contact Form via AJAX From Your Facebook Page [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ze</title>
		<link>http://illuminatikarate.com/blog/submitting-a-contact-form-via-ajax-from-your-facebook-page/#comment-2961</link>
		<dc:creator>Ze</dc:creator>
		<pubDate>Mon, 29 Aug 2011 17:14:49 +0000</pubDate>
		<guid isPermaLink="false">http://illuminatikarate.com/blog/?p=297#comment-2961</guid>
		<description>In php code missing ] for name.</description>
		<content:encoded><![CDATA[<p>In php code missing ] for name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George Huger</title>
		<link>http://illuminatikarate.com/blog/submitting-a-contact-form-via-ajax-from-your-facebook-page/#comment-877</link>
		<dc:creator>George Huger</dc:creator>
		<pubDate>Wed, 31 Mar 2010 14:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://illuminatikarate.com/blog/?p=297#comment-877</guid>
		<description>Thank you Fred, that&#039;s great info. I&#039;m going to update the code in this article to note your changes.

Each case has been different, so if you&#039;ve tried the suggestions listed in the comments and are still having trouble, drop me a line at george [at] illuminatikarate.com and I&#039;ll be happy to take a look. Make sure to attach your code as a text file.

@ash - drop me an email and we&#039;ll get it worked out.</description>
		<content:encoded><![CDATA[<p>Thank you Fred, that&#8217;s great info. I&#8217;m going to update the code in this article to note your changes.</p>
<p>Each case has been different, so if you&#8217;ve tried the suggestions listed in the comments and are still having trouble, drop me a line at george [at] illuminatikarate.com and I&#8217;ll be happy to take a look. Make sure to attach your code as a text file.</p>
<p>@ash &#8211; drop me an email and we&#8217;ll get it worked out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fred Black</title>
		<link>http://illuminatikarate.com/blog/submitting-a-contact-form-via-ajax-from-your-facebook-page/#comment-876</link>
		<dc:creator>Fred Black</dc:creator>
		<pubDate>Wed, 31 Mar 2010 13:36:46 +0000</pubDate>
		<guid isPermaLink="false">http://illuminatikarate.com/blog/?p=297#comment-876</guid>
		<description>George;
Like some of the comments, I could not get this to work.  Looking at comment #2&#039;s link, which does work, I was able to figure out what&#039;s wrong.

On the facebook page, your example uses a submit button on the form with the onsubmit event calling the JavaScript ajax function.  But this never calls the ajax JavaScript function.  The working page from comment #2 uses the onclick event which does seem to call the JavaScript ajax function.  It also uses a regular input with type set to submit vs. a button object, this would probably work either way as long as the onclick even is used vs. the onsubmit event.

The other thing I found is that, as noted in comment #10, you need the setInnerFBML function in the ajax.ondone event and the setInnerXHTML function when updated the info for the user... BUT - I kept getting a JavaScript error using the single quotes (&#039;) with setinnerXHTML as you have in your example - I changed them to double quotes (&quot;) and the errors went away.

These two changes make it work - at least for me.

Thanks for this information.
Fred</description>
		<content:encoded><![CDATA[<p>George;<br />
Like some of the comments, I could not get this to work.  Looking at comment #2&#8242;s link, which does work, I was able to figure out what&#8217;s wrong.</p>
<p>On the facebook page, your example uses a submit button on the form with the onsubmit event calling the JavaScript ajax function.  But this never calls the ajax JavaScript function.  The working page from comment #2 uses the onclick event which does seem to call the JavaScript ajax function.  It also uses a regular input with type set to submit vs. a button object, this would probably work either way as long as the onclick even is used vs. the onsubmit event.</p>
<p>The other thing I found is that, as noted in comment #10, you need the setInnerFBML function in the ajax.ondone event and the setInnerXHTML function when updated the info for the user&#8230; BUT &#8211; I kept getting a JavaScript error using the single quotes (&#8216;) with setinnerXHTML as you have in your example &#8211; I changed them to double quotes (&#8220;) and the errors went away.</p>
<p>These two changes make it work &#8211; at least for me.</p>
<p>Thanks for this information.<br />
Fred</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ash Blue</title>
		<link>http://illuminatikarate.com/blog/submitting-a-contact-form-via-ajax-from-your-facebook-page/#comment-875</link>
		<dc:creator>Ash Blue</dc:creator>
		<pubDate>Wed, 31 Mar 2010 01:36:51 +0000</pubDate>
		<guid isPermaLink="false">http://illuminatikarate.com/blog/?p=297#comment-875</guid>
		<description>Can&#039;t get this to work, doesn&#039;t even hit the return false when I comment out other code.</description>
		<content:encoded><![CDATA[<p>Can&#8217;t get this to work, doesn&#8217;t even hit the return false when I comment out other code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michaleen</title>
		<link>http://illuminatikarate.com/blog/submitting-a-contact-form-via-ajax-from-your-facebook-page/#comment-874</link>
		<dc:creator>Michaleen</dc:creator>
		<pubDate>Tue, 30 Mar 2010 15:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://illuminatikarate.com/blog/?p=297#comment-874</guid>
		<description>http://www.facebook.com/pages/MicroArts-Development/113528355326941?v=app_4949752878
Trying to get this to work - but I&#039;m banging my head. I don&#039;t see the &#039;submitting your information&#039; message.

Is there a way to NOT have the page re-direct to my site? I&#039;d like to keep it on the Facebook page.</description>
		<content:encoded><![CDATA[<p><a href="http://www.facebook.com/pages/MicroArts-Development/113528355326941?v=app_4949752878" rel="nofollow">http://www.facebook.com/pages/MicroArts-Development/113528355326941?v=app_4949752878</a><br />
Trying to get this to work &#8211; but I&#8217;m banging my head. I don&#8217;t see the &#8216;submitting your information&#8217; message.</p>
<p>Is there a way to NOT have the page re-direct to my site? I&#8217;d like to keep it on the Facebook page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jakub</title>
		<link>http://illuminatikarate.com/blog/submitting-a-contact-form-via-ajax-from-your-facebook-page/#comment-873</link>
		<dc:creator>Jakub</dc:creator>
		<pubDate>Mon, 29 Mar 2010 20:47:54 +0000</pubDate>
		<guid isPermaLink="false">http://illuminatikarate.com/blog/?p=297#comment-873</guid>
		<description>hmm it didn`t show the code so here it is:

http://www.ndive.cz/code.doc</description>
		<content:encoded><![CDATA[<p>hmm it didn`t show the code so here it is:</p>
<p><a href="http://www.ndive.cz/code.doc" rel="nofollow">http://www.ndive.cz/code.doc</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jakub</title>
		<link>http://illuminatikarate.com/blog/submitting-a-contact-form-via-ajax-from-your-facebook-page/#comment-872</link>
		<dc:creator>Jakub</dc:creator>
		<pubDate>Mon, 29 Mar 2010 20:41:48 +0000</pubDate>
		<guid isPermaLink="false">http://illuminatikarate.com/blog/?p=297#comment-872</guid>
		<description>Hi! Don`t you know what is wrong with my code? I still can`t get ajax submission to work :( after submitting the form browser transfers me to webpage...
- for this example I have deleted the url...

btw: your form_submit.php doesn`t work:
Parse error: syntax error, unexpected &#039;,&#039;, expecting &#039;]&#039; in /home/public_html/form_submit.php  on line 2

============================================


				
		
			
			
				Name:
				
				
				City:
				
	
				Email:
				
				
				Message:
				

		
Submit
     
	
			
			



			
			
		
	
	</description>
		<content:encoded><![CDATA[<p>Hi! Don`t you know what is wrong with my code? I still can`t get ajax submission to work <img src='http://illuminatikarate.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  after submitting the form browser transfers me to webpage&#8230;<br />
- for this example I have deleted the url&#8230;</p>
<p>btw: your form_submit.php doesn`t work:<br />
Parse error: syntax error, unexpected &#8216;,&#8217;, expecting &#8216;]&#8217; in /home/public_html/form_submit.php  on line 2</p>
<p>============================================</p>
<p>				Name:</p>
<p>				City:</p>
<p>				Email:</p>
<p>				Message:</p>
<p>Submit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ash Blue</title>
		<link>http://illuminatikarate.com/blog/submitting-a-contact-form-via-ajax-from-your-facebook-page/#comment-871</link>
		<dc:creator>Ash Blue</dc:creator>
		<pubDate>Mon, 29 Mar 2010 19:25:31 +0000</pubDate>
		<guid isPermaLink="false">http://illuminatikarate.com/blog/?p=297#comment-871</guid>
		<description>Thank God, I&#039;ve been looking for a straight and simple answer on this for months. Thank you so much guys.</description>
		<content:encoded><![CDATA[<p>Thank God, I&#8217;ve been looking for a straight and simple answer on this for months. Thank you so much guys.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate</title>
		<link>http://illuminatikarate.com/blog/submitting-a-contact-form-via-ajax-from-your-facebook-page/#comment-870</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Wed, 24 Mar 2010 12:32:02 +0000</pubDate>
		<guid isPermaLink="false">http://illuminatikarate.com/blog/?p=297#comment-870</guid>
		<description>AH BUM!

never worry! My bad.</description>
		<content:encoded><![CDATA[<p>AH BUM!</p>
<p>never worry! My bad.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

