 | News Feed |
Sections
|
Andy Frey's Blog: JavaScript PHP Remoting Demonstration
by Chris Cornutt June 28, 2008 @ 16:22:17
Andy Frey dropped us a line to tell us about a method he's come up with to make a remoting interface between Javascript and PHP5.
This is a demonstration of a very fast and easy way to build AJAX-type applications where communications between JavaScript on the client side and PHP5 on the server side is ideal. This library makes development of such systems fast and very simple.
In his example he shows how to create the PHP and Javascript functions that let the service talk back and forth. He defines a simple "Hello World" style application to show how it would be structured. He also includes a bit of more complex that has other functionality - getting a value out of an array and returning a property/private variable from the backend class.
voice your opinion now!
javascript remoting demo ajax interface object
Community News: Zend and Dojo Partnership for Ajax in the Zend Framework
by Chris Cornutt May 21, 2008 @ 16:17:44
In his keynote this morning Andi Gutmans announced some other big news (see here for the other announcement) at the php|tek conference currently being held in Chicago - that Zend and the Dojo framework were teaming up to provide an "out-of-the-box" Ajax solution included with the Zend Framework.
Several members of the community have already blogged about it including:
So far, all of the comments have been good and the partnership has been well received. Matthew included in hist post a few of the places they're already planning on "ajaxing" in the Zend Framework (including the forms and the JSON-RPC server).
voice your opinion now!
ajax zendframework dojo javascript client library readymade
PHPBuilder.com: Developing a Ajax-driven Shopping Cart with PHP and Prototype, Part 2
by Chris Cornutt May 05, 2008 @ 07:58:21
PHPBuilder.com has continued their series looking at building an Ajax-driven shopping cart with part two posted today (part one here). Last time they laid the PHP foundation for the example app, this time they add another layer - the Ajax functionality to manage the current contents of the cart.
Finally, a link to the shopping cart is provided, although you could just as easily have displayed the cart contents on the same page. For the sake of brevity I'll just show you how to integrate the add feature, and will leave the subtraction mechanism to you as an exercise.
The Ajax frontend calls a managecart.php backend file that calls addToCart and deleteFromCart based on which type of "task" is passed to it.
voice your opinion now!
shopping cart prototype tutorial ajax backend javascript
PHPBuilder.com: Developing a Ajax-driven Shopping Cart with PHP and Prototype
by Chris Cornutt April 29, 2008 @ 08:48:31
On PHPBuilder.com today there's a new tutorial posted showing how to combine the Javascript power of Prototype along side PHP's adaptability to create a simple, ajax-driven shopping cart for your site.
In the latest installment of this ongoing PHP series, I'll show you how to build a shopping cart using PHP, session handling, and the Prototype JavaScript library. The cart allows users to add and delete products from the cart, as well as change cart quantities. And of course, the interaction is seemingly instantaneous, allowing for the user to continue shopping without waiting for the page to reload.
They start from the ground up - making the database tables, inserting some data - before writing up the simple PHP class with methods like deleteFromCart and getCart. This lays the foundation for the next article in the series where they add in a splash of ajax to make it a bit more user-friendly.
voice your opinion now!
shoppingcart ajax prototype tutorial series
|
Community Events
Don't see your event here? Let us know!
|