Mar 10 07

Creating JSON Data in PHP

by Shea Frederick
So you need to encode JSON data for use with ExtJS or some other library? If you are lucky enough to be running PHP 5.2.0 or greater, then you have the optimal environment for encoding JSON data. But all is not lost if you dont have this setup, there are plenty of librarys you can use to take care of this task. For our examples we are using a MySQL database as the data source. PHP 5.2.0 or high Read More...
Mar 2 07

The Template – Getting Started

by Shea Frederick
I would suggest downloading the code used for this example here so you have something to work with. A working example can be found here. Step 1, HTML for Your Template The first step is pretty straight forward, its the HTML that will be used to format your data. Some keywords in curly brackets will be the placeholders for your data {id}, {url} and {text}. You could simplify this by using {0} Read More...
Mar 1 07

The Grid – Getting Started

by Shea Frederick
I would suggest downloading the code used for this example here so you have something to work with. A working example can be found here. Step 1, Data Definition First we need to tell the grid what XML element defines each row of data, in this case its named 'Item' as you can see from the sample XML below. Single Row of XML Sample Data 0446613657 http://www.amazon[*SNIP*]JVQEG2 Read More...