onError
(since )
Intercept an error event.
Description
string
onError
(
[string type], string fn )
Execute a function when an error raw is received.
Parameters
type
The error code (e.g : 004)
fn
The function to execute.
Examples
//Instantiate APE Client.
var client = new APE.Client();
//Error 004 is when the user send a bad sessid
client.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...
