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/docs/lib/overrides/override-ext-ajax.html @ 76

Revision 76, 8.5 KB checked in by djay, 13 years ago (diff)

Ajout du répertoire web

  • Property svn:executable set to *
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
4<html xmlns="http://www.w3.org/1999/xhtml">
5  <head>
6    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7   
8    <title>Ext.Ajax Overrides &mdash; GeoExt v1.0</title>
9    <link rel="stylesheet" href="../../_static/geoext.css" type="text/css" />
10    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
11    <script type="text/javascript">
12      var DOCUMENTATION_OPTIONS = {
13        URL_ROOT:    '../../',
14        VERSION:     '1.0',
15        COLLAPSE_MODINDEX: false,
16        FILE_SUFFIX: '.html',
17        HAS_SOURCE:  true
18      };
19    </script>
20    <script type="text/javascript" src="../../_static/jquery.js"></script>
21    <script type="text/javascript" src="../../_static/doctools.js"></script>
22    <link rel="shortcut icon" href="../../_static/favicon.ico"/>
23    <link rel="top" title="GeoExt v1.0" href="../../index.html" />
24    <link rel="up" title="Ext Overrides" href="../overrides.html" />
25    <link rel="next" title="Download GeoExt" href="../../downloads.html" />
26    <link rel="prev" title="Ext Overrides" href="../overrides.html" />
27   
28   
29   
30   
31   
32
33  </head>
34  <body>
35    <div class="header">
36        <div class="wrap">
37            <h1 id="logo"><a href="../../index.html">GeoExt</a></h1>
38            <ul id="top-nav">
39                <li class="first"><a href="../../docs.html">Documentation</a></li>
40                <li><a href="../../examples.html">Examples</a></li>
41                <li><a href="../../downloads.html">Download</a></li>
42                <li><a href="http://trac.geoext.org/">Development</a></li>
43            </ul>
44            <div id="searchbox">
45                <form class="search" action="../../search.html" method="get">
46                    <input id="searchbox-query" type="text" name="q" size="25" value="Search &hellip;" tabindex="3" onblur="if(this.value=='') this.value='Search &hellip;';" onfocus="if(this.value=='Search &hellip;') this.value='';" />
47                    <input id="searchbox-submit" type="image" value="Search" src="../../_static/img/search_icon_green.png" />
48                    <input type="hidden" name="check_keywords" value="yes" />
49                    <input type="hidden" name="area" value="default" />
50                </form>
51            </div>
52        </div>
53    </div>
54
55    <div class="related">
56      <h3>Navigation</h3>
57      <ul>
58        <li><a href="../../index.html">GeoExt</a> &raquo;</li>
59          <li><a href="../index.html" >API Reference</a> &raquo;</li>
60          <li><a href="../overrides.html" accesskey="U">Ext Overrides</a> &raquo;</li>
61        <li><a href="#">Ext.Ajax Overrides</a></li>
62      </ul>
63    </div>
64
65      <div class="sphinxsidebar">
66        <div class="sphinxsidebarwrapper">
67            <h3><a href="../../index.html">Table Of Contents</a></h3>
68            <ul>
69<li><a class="reference external" href="#">Ext.Ajax Overrides</a><ul>
70<li><a class="reference external" href="#workaround-for-existing-builds">Workaround for Existing Builds</a></li>
71</ul>
72</li>
73</ul>
74
75            <h4>Previous topic</h4>
76            <p class="topless"><a href="../overrides.html"
77                                  title="previous chapter">Ext Overrides</a></p>
78            <h4>Next topic</h4>
79            <p class="topless"><a href="../../downloads.html"
80                                  title="next chapter">Download GeoExt</a></p>
81        </div>
82      </div>
83
84
85    <div class="document">
86      <div class="documentwrapper">
87        <div class="bodywrapper">
88          <div class="body">
89           
90  <div class="section" id="ext-ajax-overrides">
91<span id="overrides-ext-ajax"></span><h1>Ext.Ajax Overrides<a class="headerlink" href="#ext-ajax-overrides" title="Permalink to this headline">¶</a></h1>
92<p>GeoExt provides an override for the functionality in
93<a class="reference external" href="http://dev.sencha.com/deploy/dev/docs/?class=Ext.Ajax">Ext.Ajax</a>.  If you include
94the <tt class="docutils literal"><span class="pre">override-ext-ajax.js</span></tt> file in your build, any calls to <tt class="docutils literal"><span class="pre">Ext.Ajax</span></tt>
95methods will be routed through <tt class="docutils literal"><span class="pre">OpenLayers.Request</span></tt> methods.  The practical
96implication of this is that you can set the <tt class="docutils literal"><span class="pre">OpenLayers.ProxyHost</span></tt> property
97in your application and have this proxy used by Ext components that call
98<tt class="docutils literal"><span class="pre">Ext.Ajax</span></tt> methods.</p>
99<p>To include <tt class="docutils literal"><span class="pre">override-ext-ajax.js</span></tt> in your build, the GeoExt section in
100your build config should look like one of the following:</p>
101<div class="highlight-ini"><pre># include everything (including override-ext-ajax.js)
102[GeoExt.js]
103root = ../lib
104license = geoext-license.js
105exclude =
106    GeoExt.js
107    GeoExt/SingleFile.js</pre>
108</div>
109<p>or</p>
110<div class="highlight-ini"><pre># custom build
111[GeoExt.js]
112root = ../lib
113license = geoext-license.js
114include =
115    overrides/override-ext-ajax.js
116    # other files listed here ...</pre>
117</div>
118<div class="section" id="workaround-for-existing-builds">
119<h2>Workaround for Existing Builds<a class="headerlink" href="#workaround-for-existing-builds" title="Permalink to this headline">¶</a></h2>
120<p>If you are using a build of GeoExt that includes the Ajax overrides (e.g. the
1210.6 release or earlier), you can work around any issues you may have using this
122override in your appliction by protecting the <tt class="docutils literal"><span class="pre">Ext.lib.Ajax</span></tt> object before
123loading file:<cite>GeoExt.js</cite>.</p>
124<p>The example markup below will remove the effect of the override on Ajax methods.</p>
125<div class="highlight-html"><div class="highlight"><pre><span class="nt">&lt;script </span><span class="na">src=</span><span class="s">&quot;path/to/ext.js&quot;</span><span class="nt">&gt;&lt;/script&gt;</span>
126<span class="nt">&lt;script&gt;</span>
127    <span class="nx">Ext</span><span class="p">.</span><span class="nx">lib</span><span class="p">.</span><span class="nx">_Ajax</span> <span class="o">=</span> <span class="nx">Ext</span><span class="p">.</span><span class="nx">lib</span><span class="p">.</span><span class="nx">Ajax</span><span class="p">;</span> <span class="c1">// protect the original</span>
128    <span class="nx">Ext</span><span class="p">.</span><span class="nx">lib</span><span class="p">.</span><span class="nx">Ajax</span> <span class="o">=</span> <span class="p">{};</span>  <span class="c1">// create dummy for override</span>
129<span class="nt">&lt;/script&gt;</span>
130<span class="nt">&lt;script </span><span class="na">src=</span><span class="s">&quot;path/to/GeoExt.js&quot;</span><span class="nt">&gt;&lt;/script&gt;</span>
131<span class="nt">&lt;script&gt;</span>
132    <span class="nx">Ext</span><span class="p">.</span><span class="nx">lib</span><span class="p">.</span><span class="nx">Ajax</span> <span class="o">=</span> <span class="nx">Ext</span><span class="p">.</span><span class="nx">lib</span><span class="p">.</span><span class="nx">_Ajax</span><span class="p">;</span> <span class="c1">// restore the original</span>
133<span class="nt">&lt;/script&gt;</span>
134</pre></div>
135</div>
136<p>Note that issues with the Ajax override present in 0.6 will be fixed in
137subsequent releases.</p>
138</div>
139</div>
140
141
142          </div>
143        </div>
144      </div>
145      <div class="clearer"></div>
146    </div>
147    <div class="related">
148      <h3>Navigation</h3>
149      <ul>
150            <li class="right" style="margin-right: 10px">
151              <a href="../../genindex.html" title="General Index"
152                 accesskey="I">index</a></li>
153            <li class="right" >
154              <a href="../../modindex.html" title="Global Module Index"
155                 accesskey="M">modules</a> |</li>
156            <li class="right" >
157              <a href="../../downloads.html" title="Download GeoExt"
158                 accesskey="N">next</a> |</li>
159            <li class="right" >
160              <a href="../overrides.html" title="Ext Overrides"
161                 accesskey="P">previous</a> |</li>
162        <li><a href="../../index.html">GeoExt</a> &raquo;</li>
163          <li><a href="../index.html" >API Reference</a> &raquo;</li>
164          <li><a href="../overrides.html" >Ext Overrides</a> &raquo;</li>
165        <li><a href="#">Ext.Ajax Overrides</a></li>
166      </ul>
167    </div>
168
169    <div class="footer">
170      &copy; Copyright 2009-2010, GeoExt Community.
171    </div>
172  </body>
173</html>
Note: See TracBrowser for help on using the repository browser.