Sep 18 08

GMapPanel on Google Code

by Shea Frederick
It was too much trouble to keep track of the changes in this UX on my own, so I decided to put it up in Googles SVN. I will be monitoring the Google Code page so please post issues there from now on. http://code.google.com/p/ext-ux-gmappanel/ Read More...
Aug 4 08

GMapPanel Example Included in ExtJS 2.2 SDK

by Shea Frederick
It was nice to see the announcement that my extension for Google maps integration with ExtJS panels has been included in the official download package. Here is the announcement on the ExtJS blog about the addition. "This extension was originally written up as a demo for one of our previous blog posts. However, it proved to be such a hit with the community that we transformed it into an official e Read More...
Apr 18 08

Grid Filter Plugin – Backend Code (in PHP)

by Shea Frederick
The code used for this example is available by itself, or as one of the examples in the ExtJS API download. This code is provided with the intent of showing how to build a filtered query from the Grid Filter Plugin in PHP, therefore it does NOT contain any security precautions. Please modify this script before use in a production environment. The Plugin If your not familiar with the Grid Filter Read More...
Nov 25 07

Adding a Google Map to a Tab or Window

by Shea Frederick
The code used for this example is available here. Working examples can be found here. Getting Started If you havent yet used the Google Maps API, then I would suggest going through some of their examples prior to this. I will assume that you already have knowledge of how the Google Maps API works. Sadly, its quite easy if you already know what the Google Maps API needs, and Read More...
Sep 28 07

Populate a ComboBox from a DataStore (JSON)

by Shea Frederick
I would suggest downloading the code used for this example here so you have something to work with. Working examples can be found here. Getting Started The ComboBox is always a very usefull form field type, and populating it dynamically makes it even more usefull. We will just be creating a basic ComboBox thats populated from a JSON data source which pulls data from our database. Read More...
Jul 18 07

Domhelper/DomQuery fun with Forms

by Shea Frederick
I would suggest downloading the code used for this example here so you have something to work with. Working examples can be found here. Getting Started DomHelper is a very powerful tool, so were going to start with some simple things, and you can take it from there. We are going to be using the insertAfter and insertBefore methods of DomHelper in the following examples. Spacing form Elements F Read More...
Jul 5 07

PHP/MySQL Efficient Paged Data

by Shea Frederick
There was some talk recently about the inefficiency of running two queries verses a single query to retrieve paged data, so I decided to do some testing of my own, and here are my results. The first way to retrieve paged data is to run two queries, the first query would be just like the second, just without the LIMIT statement. You would use mysql_num_rows to retreive the total Read More...
May 22 07

Loading Data Into & Submitting a Form

by Shea Frederick
This tutorial uses the employee edit form used in the getting started tutorial, if you are not yet familiar with creating a form then you should start with the getting started tutorial. I would suggest downloading the code used for this example so you have something to work with. You can also find a working example. We will go through the full circle of using form Read More...
Apr 1 07

The Grid – Basics of Paging

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. Grid Data A paging grid must have a server side element to perform the breaking up of data into pages. For this example we are using php as the server side language, and a MySQL database with some randomly generated data. The PHP script below is used to Read More...
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...