onError
(since )
Intercept an error event.
Description
string
onError
(
string type, fn )
Execute a function when an error raw is received.
Parameters
type
The error code (e.g : 004)
fn
The function to execute.
Examples
//ape var is a reference to APE instance
//Error 004 is when the user send a bad sessid
ape.onError('004', function() {
alert('Bad sessid');
});
User notes
# No comment
Post a note
CollaborAPE to our wiki !
Find the information you need on the APE Official Wiki : Install, Server, JSF, Help...
