PhpTips.im - Everything about php - Download CMS, find tips and tricks, code snippetz, classes and more and more...
Bookmark this page !
   

Articles

    Home » Articles » PHP/AJAX
Browsing PHP/AJAX RSS RSS

   Pages :   0  
PHP code and the complete AJAX example
Published on : 04.05.2010 Category : PHP/AJAX Viewed : 19 times.
Implementing the server side functionality is very simple compared to the client side. In the PHP code we just need to check the $_GET  super-global array. Afterwards convert it to uppercase and echo the result. So the PHP code is this:[code]   1.      <?php   2.      if (isset($_GET['inputText']))   3.      echo strtoupper($_GE...
Read More »

Sending data to PHP with Ajax
Published on : 04.05.2010 Category : PHP/AJAX Viewed : 15 times.
Before the explanation of the doWork() function we first need to learn a more important thing. To make a communication between the client and the server the client code needs to create a so called XMLHttpRequest object. This object will be responsible for AJAX PHP communication.However creating this object is bit triky as the browser implement it various ways. If you don't want to support the quite old browsers we can do it as follows:[code]   1....
Read More »

Ajax basics
Published on : 04.05.2010 Category : PHP/AJAX Viewed : 16 times.
In this article I don't want to show you the history of AJAX and discuss its pros and cons, but only focus on how to create a basic working AJAX - PHP communication.The only important thing at the moment is that AJAX uses JavaScript so it need to be enabled in your browser to successfully complete this tutorial.To demonstrate the AJAX PHP connection we will create a very simple form with 2 input fields. In the first field you can type any text and we will send this tex...
Read More »

 

 Members
Log In !
Email Address :

Password :


Change my passowrd !
Sign Up !
We have : 3 members.
Latest member : albans
 
 Last Posts
 
 Advertising
 
©PhpTips.im 2010
Powered by PikaCMS.
Quick Links :
Home | Browse all articles | Downloads | Terms of Use
RSS RSS 2.0 : Articles | Downloads ATOM : Articles | Downloads