Changes between Version 6 and Version 7 of mobile

Show
Ignore:
Author:
marcjansen (IP: 87.79.65.204)
Timestamp:
08/18/11 08:24:10 (2 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • mobile

    v6 v7  
    123123}}} 
    124124 
    125 We'll also include a file '''`gxm-example.js`''' in the `<head>` with the following content: 
     125We'll also include a file '''`gxm-example.js`''' as last element in the `<head>` with the following content: 
     126 
     127{{{ 
     128alert('OpenLayers: ' + OpenLayers.VERSION_NUMBER); 
     129alert('Sencha Touch: ' + Ext.version); 
     130alert('GXM: ' + GXM.version); 
     131}}} 
     132 
     133If you visit that site with a browser you should be greeted with three alerts, and none of the alerts should contain the string `undefined`. If you see the string `undefined`, you will have to adjust the according path. 
     134 
     135Next we are going to add a wrapper method that'll run all our instanciation code as soon as possible: 
    126136 
    127137{{{ 
    128138Ext.setup({ 
    129139    onReady: function(){ 
    130         alert('OpenLayers: ' + OpenLayers.VERSION_NUMBER); 
    131         alert('Sencha Touch: ' + Ext.version); 
    132         alert('GXM: ' + GXM.version); 
     140        alert('Replace this alert with actual code.'); 
    133141    } 
    134142}); 
    135143}}} 
    136144 
    137 If you visit that site with a browser you should be greeted with three alerts, and none of the alerts should contain the string undefined. 
    138  
    139 In the next step we will remove the above debugging code and start with the creation af a simple OpenLayers.Map. Place the following code inside of the onReady-method: 
     145In the next step we will remove the above debugging alert and start with the creation af a simple OpenLayers.Map. Place the following code inside of the `onReady`-method: 
    140146 
    141147{{{