<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2885055629747660862</id><updated>2011-12-14T14:10:33.091-08:00</updated><title type='text'>php alternative to ajax</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://patajax.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2885055629747660862/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://patajax.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mark Hopgood</name><uri>https://profiles.google.com/113113685150842323766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hjI5DLRF_kk/AAAAAAAAAAI/AAAAAAAAATY/PtqczZbvIQY/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2885055629747660862.post-6515783875807535002</id><published>2007-11-06T04:52:00.000-08:00</published><updated>2007-11-06T08:21:55.371-08:00</updated><title type='text'>php alternative to using ajax</title><content type='html'>PATAJAX - php alternative to AJAX&lt;br /&gt;&lt;br /&gt;I found an excellent alternative to ajax which uses php.&lt;br /&gt;&lt;br /&gt;requirements:&lt;br /&gt;                        client - javascript, modern brower&lt;br /&gt;                        server - php&lt;br /&gt;&lt;br /&gt;I've modified (simplified) and extended the original from ideas at:&lt;br /&gt;&lt;br /&gt;http://www.phpit.net/article/ajax-php-without-xmlhttprequest/&lt;br /&gt;http://www.shawngo.com/gafyd/index.html&lt;br /&gt;http://www.shawngo.com/rating-script.php&lt;br /&gt;&lt;br /&gt;and others to come up with an ajax alternative which returns a response via php to a div.&lt;br /&gt;&lt;br /&gt;How to make it work:&lt;br /&gt;&lt;br /&gt;1. add script tag to an html document (src=patajax.php)&lt;br /&gt;2. in your html, create a div tag with an id - the response from the server will arrive here&lt;br /&gt;3. your html needs to trigger the patajax javascript function, specifying the php (e.g. patjax.php) to call with the id of the div tag specified above and any additional parameters&lt;br /&gt;4. the patajax.php will return the html to the div tag specified in 3&lt;br /&gt;&lt;br /&gt;&lt;a href="http://plasmanet.tv/patajax2/patajax.zip"&gt;download&lt;br /&gt;here's the zip file with the&lt;br /&gt;patajax.html and the patajax.php&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://plasmanet.tv/patajax2/patajax.html"&gt;try it here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;screenshots&lt;br /&gt;&lt;br /&gt;i.e&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://plasmanet.tv/patajax2/image1.jpg" target="_blank"&gt;&lt;img style="cursor: pointer; width: 320px;" src="http://plasmanet.tv/patajax2/image1.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;firefox&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://plasmanet.tv/patajax2/Image2.jpg" target="_blank"&gt;&lt;img style="cursor: pointer; width: 320px;" src="http://plasmanet.tv/patajax2/Image2.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;konqueror (plasmanetix linux)&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://plasmanet.tv/patajax2/Image3.jpg"  target="_blank"&gt;&lt;img style="cursor: pointer; width: 320px;" src="http://plasmanet.tv/patajax2/Image3.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;nokia n70 phone (opera)&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://plasmanet.tv/patajax2/Image5.jpg"  target="_blank"&gt;&lt;img style="cursor: pointer; width: 320px;" src="http://plasmanet.tv/patajax2/Image5.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2885055629747660862-6515783875807535002?l=patajax.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://patajax.blogspot.com/feeds/6515783875807535002/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2885055629747660862&amp;postID=6515783875807535002' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2885055629747660862/posts/default/6515783875807535002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2885055629747660862/posts/default/6515783875807535002'/><link rel='alternate' type='text/html' href='http://patajax.blogspot.com/2007/11/php-alternative-to-using-ajax.html' title='php alternative to using ajax'/><author><name>Mark Hopgood</name><uri>https://profiles.google.com/113113685150842323766</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hjI5DLRF_kk/AAAAAAAAAAI/AAAAAAAAATY/PtqczZbvIQY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry></feed>
