Changeset 2050


Ignore:
Timestamp:
03/26/10 14:13:37 (8 years ago)
Author:
ahocevar
Message:

added printexception event to PrintProvider. r=fredj (closes #249)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/trunk/geoext/lib/GeoExt/data/PrintProvider.js

    r1987 r2050  
    225225            "print",
    226226
     227            /** api: events[printexception]
     228             *  Triggered when using the ``POST`` method, when the print
     229             *  backend returns an exception.
     230             * 
     231             *  Listener arguments:
     232             *  * printProvider - :class:`GeoExt.data.PrintProvider` this
     233             *    PrintProvider
     234             *  * response - ``Object`` the response object of the XHR
     235             */
     236            "printexception",
     237
    227238            /** api: events[beforeencodelayer]
    228239             *  Triggered before a layer is encoded. This can be used to
     
    417428                    }
    418429                    this.fireEvent("print", this, url);
     430                },
     431                failure: function(response) {
     432                    this.fireEvent("printexception", this, response);
    419433                },
    420434                scope: this
Note: See TracChangeset for help on using the changeset viewer.