You are here: Re: PHP and AJAX « PHP Programming Language « IT news, forums, messages
Re: PHP and AJAX

Posted by Noodle on 12/17/36 11:53

A good ajax library I use with PHP is the moo.ajax from the moo.fx
package. Its simple and small (1kb).

Check out http://moofx.mad4milk.net/

To use it, include the moofx scripts in your header.

<script type="text/javascript"
src="/moo.fx/scripts/prototype.lite.js"></script>
<script type="text/javascript"
src="/moo.fx/scripts/moo.ajax.js"></script>

Then embed JS where needed..

<p id="foobar"><a href="#" onclick="new ajax('hello.php', {update:
$('foobar')});">Click Me</a></p>

Then create your PHP page that will communicate with the AJAX...

eg. hello.php....

<?php
echo "hello world";
?>

And thats it!

Fred Weinhaus wrote:
> Can anyone point me to some good online literature about communicating
> between PHP and AJAX. Are there any libraries that would allow PHP to
> send back request information to the calling HTML page?
>
> Thanks
>
> Fred Weinhaus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация