Archive for December, 2010

Free Courses, Books and Holiday Sale on GIS E-Learning Materials

Posted on December 22, 2010. Filed under: GeoSpatial Training Services |

We’re giving away 5 free copies of the Google Sketchup Levels 1 and 2 DVD training set to the first five people that contact me at eric at  You will need to pay shipping ($10.80 USA and $26.00 Canada).  We’re not shipping outside the US or Canada.

We also have some used books that we’re giving away as well.  Same conditions apply on the shipping.  First come first serve.  The books are:

  • Introduction to Environmental Remote Sensing
  • Google Maps Applications with Rails and Ajax
  • Programming C#
  • Programming .NET Web Services
  • .NET Framework Essentials

Don’t forget that you can also get a free copy of our e-learning course: Introduction to the Google Maps API by signing up for our weekly newsletter at GeoSpatial Training Services.  We also have a free lecture module on the new ArcPy Mapping Module directly on our home page.

There is still time to take advantage of our 2010 holiday sale.  Through December 31st you can save 20% on all e-learning courses offered by GeoSpatial Training Services. This includes both self-paced and Internet based, instructor led courses.

Simply enter the discount code ‘2010holiday‘ when checking out.

Read Full Post | Make a Comment ( None so far )

Using a Proxy Page with the ArcGIS Server API for JavaScript

Posted on December 13, 2010. Filed under: ArcGIS Server, ESRI, GeoSpatial Training Services |

A proxy page handles communication between your application and ArcGIS Server services.  The proxy is server-side code that resides on your Web Server and handles incoming requests from a browser based application.  The proxy accepts the request and forwards it to ArcGIS Server for processing.

There are three situations where you’d use a proxy page in your ArcGIS Server API for JavaScript applications.  The first instance is when your application creates requests that exceed 2048 characters.  This is often the case when your application performs buffering of complex polygons in conjunction with queries or any other application function that performs some type of geometry operation.  To handle this instance the proxy page performs a POST operation which is not subject to the 2048 character limitation when using GET requests.  You’ll also need to use a proxy page when your application uses services secured with token-based authentication and you don’t want the user to be able to view the token or you don’t want to transmit the token between the application and web server.  Finally, any application that requires feature editing will need to use a proxy page.

There are four basic steps to installing and configuring your proxy page.  First, download and configure the proxy page for your server.  This can be ASP.NET, PHP, or Java/JSP.  Next, add code to your application to enable the use of the proxy.  In step 3, secure your web application if you plan to use tokens.  Finally, test your application to make sure the proxy is working as expected.  Detailed instructions for installing and configuring your proxy page is provided by ESRI at the links provided on above.

Coding your application to use a proxy page requires only a couple lines of code.  Normally you’d put this in your ‘init’ function which runs on startup.  You’ll need to provide the Url for the location of the proxy page and the ‘alwaysUseProxy’ property can be set to either true or false.  If your application will be using tokens you’ll want to set this value to true, but otherwise it can be set to false if you know that not all requests will need the proxy.  This would be the case in an editing application or an application where only some requests would exceed the 2048 character limitation.

More Information
The next session of our Mastering the ArcGIS Server JavaScript API begins January 10th, 2010.  We still have seats available.

Read Full Post | Make a Comment ( None so far )

Liked it here?
Why not try sites on the blogroll...