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...
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...
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...