Method callback documentation

Executes a serie of predefined actions once an Ajax request has been done.

Executes a serie of predefined actions once an Ajax request has been done. - Used to treat all the requests functions results, it expects at least url and res to be defined; The following properties from the object res have direct effects: - __url__ {String}: if not given it will be automatically defined by the url parameter; __the given URL will be passed to location.href (without reloading)__ - __prescript__ {String}: if defined it will attempt to evaluate the code contained in the property - __content__ {String}: if defined and ele is defined too, the string will be inserted as content in the element - __script__ {String}: if defined it will be evaluated, executed, and its result will be returned - __data__ {Object}: - __postscript__ {String}: if defined it will be evaluated and executed - __error__ {String}: if defined it will be trigger bbn.fn.defaultAlertFunction If fn is defined it will be executed after prescript, otherwise it will be bbn.fn.defaultLinkFunction. The rest of the function comes executed if either of these results is not empty. If fn2 is defined it will be executed after script, otherwise it will be bbn.fn.defaultPostLinkFunction. Although not private this function should only be used internally. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.