Bienvenue sur PostGIS.fr

Bienvenue sur PostGIS.fr , le site de la communauté des utilisateurs francophones de PostGIS.

PostGIS ajoute le support d'objets géographique à la base de données PostgreSQL. En effet, PostGIS "spatialise" le serverur PostgreSQL, ce qui permet de l'utiliser comme une base de données SIG.

Maintenu à jour, en fonction de nos disponibilités et des diverses sorties des outils que nous testons, nous vous proposons l'ensemble de nos travaux publiés en langue française.

source: trunk/workshop-routing-foss4g/web/GeoExt/lib/overrides/override-ext-ajax.jst @ 81

Revision 76, 1.9 KB checked in by djay, 12 years ago (diff)

Ajout du répertoire web

  • Property svn:executable set to *
Line 
1.. _overrides.ext.ajax:
2
3Ext.Ajax Overrides
4==================
5
6GeoExt provides an override for the functionality in
7`Ext.Ajax <http://dev.sencha.com/deploy/dev/docs/?class=Ext.Ajax>`_.  If you include
8the :file:`override-ext-ajax.js` file in your build, any calls to ``Ext.Ajax``
9methods will be routed through ``OpenLayers.Request`` methods.  The practical
10implication of this is that you can set the ``OpenLayers.ProxyHost`` property
11in your application and have this proxy used by Ext components that call
12``Ext.Ajax`` methods.
13
14To include :file:`override-ext-ajax.js` in your build, the GeoExt section in
15your build config should look like one of the following:
16
17.. code-block:: ini
18
19    # include everything (including override-ext-ajax.js)
20    [GeoExt.js]
21    root = ../lib
22    license = geoext-license.js
23    exclude =
24        GeoExt.js
25        GeoExt/SingleFile.js
26
27
28or
29
30.. code-block:: ini
31
32    # custom build
33    [GeoExt.js]
34    root = ../lib
35    license = geoext-license.js
36    include =
37        overrides/override-ext-ajax.js
38        # other files listed here ...
39
40
41Workaround for Existing Builds
42------------------------------
43
44If you are using a build of GeoExt that includes the Ajax overrides (e.g. the
450.6 release or earlier), you can work around any issues you may have using this
46override in your appliction by protecting the ``Ext.lib.Ajax`` object before
47loading file:`GeoExt.js`.
48
49The example markup below will remove the effect of the override on Ajax methods.
50
51.. code-block:: html
52
53    <script src="path/to/ext.js"></script>
54    <script>
55        Ext.lib._Ajax = Ext.lib.Ajax; // protect the original
56        Ext.lib.Ajax = {};  // create dummy for override
57    </script>
58    <script src="path/to/GeoExt.js"></script>
59    <script>
60        Ext.lib.Ajax = Ext.lib._Ajax; // restore the original
61    </script>
62
63Note that issues with the Ajax override present in 0.6 will be fixed in
64subsequent releases.
Note: See TracBrowser for help on using the repository browser.