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]
|