If you need to add some custom code to your App for very special requirements, there are 2 events triggered by the Json API that can be useful.
In order to respond to these events, you can select the events tab of the Widget properties panel,, and then access to the events onJSONdataLoadSuccess and onJSONdataLoadError:
By Selecting an event Handler, the event code will be automatically added to the custom.js file:
Example of code
This event handler implements 3 parameters:
$(this)
a reference to
$(this)
in the current context
Sender
a reference to the
DOM
object (eg. A JSON Repeater)
Data
a js object with the loaded data
Example in the Safari Debugger
Alert
...
...