The client-side API is in the form of a JQuery plugin. This plugin includes a list of options and events that allow you to integrate in a few lines of code the functionalities of the DQE Phone engine within your website.
Apart from the JQuery Framework and JQuery UI framework, only the jquery.dqephone.js JavaScript file is required for the client-side DQE Phone API to work. Once this file is included, a JQuery call on your phone field is required to activate the validation of your form. The control will then be done when the user leaves the phone field or manually via a call to the "check()" method.
Validation will cause multiple events to run. The use of these events can be used to display an animation prompting to wait or retrieve the result of the validation.
With this call, it is necessary to pass an array of mandatory options containing at least the URL of your server or the value "JSONP" for direct operation without server part.