Contents |
| Summary: Additional set up guidelines for new users. |
| Author: Michael LeComte |
| Published: July 30, 2008 |
| Ext Version: 2.0+ |
Languages: English Thai
|
This tutorial will walk through how to get an Ext installation up and running quickly.
If you haven't done so already, you'll first want to download the most current Ext release which can always be found here: http://extjs.com/products/extjs/download.php.
There are several different options for what you can download, but you'll probably want to start with the most current stable production version available. Once you download and unzip the file, you're pretty much ready to go, but read on for some specifics depending on your server setup.
Some Ext JS examples require a HTTP server (and some a PHP server). This does not mean that Ext JS can only be used in combination with a HTTP server.
Ext JS code that uses server requests requires a HTTP web server (access pages through a webserver via http://something).
You can actually run Ext JS without a web server thanks to Doug Hendricks. If you would like to run Ext without a web server, check out this forum post.
If you encounter any difficulties on a IIS platform, additional tips can be found in this forum post.
If you encounter issues with Apache on windows (files being corrupted), additional tips can be found in this forum post.
A good place to start exploring is the examples directory and the wiki (tutorials and manual). The examples directory in the download package has several working examples, please note the following:
Ext uses a 1x1 transparent gif image to create inline icons with CSS background images. The default URL to this file is "extjs.com/s.gif", so you'll want to change this somewhere at the top of your code by telling Ext where to find the empty image. You can modify the URL as needed with a command like this:
Ext.BLANK_IMAGE_URL = '/images/ext/resources/images/default/s.gif';
Ext JS is a client side javascript framework and will operate with any server platform that can process POST requests and return structured data. It just so happens that some of the samples provided include php files, so you'll need to have a local php server set up to run some of these examples out of the box (again php is not required for Ext JS).
/* 1.) Download JSON.php from: http://mike.teczno.com/JSON/JSON.phps<br /> 2.) copy JSON.php to the example dir of Ext.<br /> 3.) Change the php file in the example as follows: ("ext tree" used for the example below)<br /> */ //In: example/tree/get-nodes.php add /remark: require_once("../JSON.php"); ... ... ... //echo json_encode($nodes); $json = new Services_JSON(); echo $json->encode($nodes);
Not all of the samples are linked on the examples index page. You will need to browse the directories manually to discover some other examples Ext includes in the distribution package.