onVisitorInfoChange ( data )
The event of modification of visitor data input fields.
The data object is passed as an argument, containing the following properties:
Property | Type | Description |
---|---|---|
field | string | This property shows whose input field value has changed in particular. It may contain one of the following values:
|
oldValue | string | Old value of the changed input field |
newValue | string | New value of the changed input field |
Examples
- Using jQuery
$(document).on("netroxvisitorinfochange", function(event, data) { // For instance, display a query message alert('You have changed a field value "' + data.field + '" c "' + data.oldValue + '" ?? "' + data.newValue); });
- Using the nsc_API object
nsc_API = { /* ... */ }; nsc_API.onVisitorInfoChange = function(data) { // For instance, display a query message alert('You have changed a field value"' + data.field + '" c "' + data.oldValue + '" ?? "' + data.newValue); };
All rights reserved. Copyright © 2019 Netrox SC