Archive for July, 2006

Demo and Tutorial of Interfacing GWT and PHP

Friday, July 28th, 2006

I wrote a little tutorial showing a simple way to exchange data between a GWT client and a PHP server. Source is included as well as other tools to make it simple to implement. Part 2 ends with instructions for getting a quick start to see how simply such an arrangement can be made.

Part 1 discusses the client side. Part 2 discusses the server side.

I hope this guide will help you get a start in using the awesome Web Toolkit.

Basic tips for using GWT with PHP

Tuesday, July 25th, 2006

This is a topic that is not well defined, and doesn’t seem to get that much coverage in the GWT developer forums. I found a few tricks that got me going in my own projects.

I use PHP in a couple of ways: with apache on my PC, and on a hosted server. On my PC, I’m only running apache/php, the hosted server includes MySQL. I decided to use GWT to implement a better user interface for some new functionality on an existing project. This included passing data between the server and the GWT client, debugging in hosted mode, and making queries to the database.
(more…)

New: Google Web Toolkit

Sunday, July 23rd, 2006

I have spent the past few weeks getting into Google’s new Web Toolkit. It is an awesome way to write (mostly) cross-browser compatible applications. I found AJAX and other such tools to be a very interesting concept for making browsers into smart applications, rather than the traditional approach of smart server/stupid broswer. But I’m not interested in getting into the details of writing javascript that works with every browser that visits my site. Enter GWT.

GWT is a library and tool set that allows you to write an application in Java and then compile it into obfuscated javascript which will generally run safely and identically across most browsers. It works best under IE, but their FireFox support is also pretty good. They should be closing in on releasing an update which would include several bug fixes and some improved implementations of various things… The developer forum has a ton of discussion on such issues.
(more…)