PHPDiscussion
PHP and AJAX


Sponsor
gmalonzoOct 21, 2007 12:24pm
Please excuse my ignorance but is there such a thing? Please provide a good tutorial site. Thanks.


Sponsor
ThlayliOct 21, 2007 12:28pm
PHP, like ASP or JSP is a server-side technology. AJAX is the combination of client-side technologies; JavaScript, DHTML and the XMLHttpRequest class. They can work together, but not directly.

The most common way to connect them is to have AJAX submit data via a request to a PHP form, where processing can happen. The results could then be loaded into the active page via JavaScript.

Sorry, I do not know of any tutorials.


Sponsor
gmalonzoOct 21, 2007 7:12pm
umm, ok. thanks. :)


Josh1billionOct 23, 2007 8:28pm
Here's a tutorial, I'm thinking about using it myself later (as part of a project to create a Firefox toolbar to accompany my web-based game-- Firefox toolbars use Javascript):

tizag.com/ajaxTutorial/ajax-mysql-database.php [tizag.com/ajaxTutorial/ajax-mysql-database.php]


guitarnoizeOct 24, 2007 4:23pm
I would look at using a javascript library like JQuery which makes it very easy to post form data to a php page and receive a response to update your page, or look into XAJAX. xajaxproject.org [xajaxproject.org]


Sponsor
ThlayliOct 25, 2007 9:01am
There's also cpaint.sourceforge.net [cpaint.sourceforge.net]


Josh1billionOct 25, 2007 9:06am
Can CPAINT be used in Firefox extension development? I know very little about Javascript (barely ever used it) and next to nothing about Ajax (never used it).


Sponsor
ThlayliOct 25, 2007 10:01am
You can't run PHP on a client machine because there's no PHP framework. CPAINT uses PHP. You could communicate with a web server via AJAX, and do PHP computation or database queries from there. You still have to read the data back into the client machine, and it's hard to get predictable latency.


PHP and AJAX

You need to Sign-up for StumbleUpon to post to this forum