hi
about this code, cant get it to work.
first of all there is no ./components/com_fabrik.php, what exists is fabrik.php. i tried to create an external js file using the code above and added this code to the php file.
i get a syntax error. the file located in the root.
im i doing it right?
thanks
about this code, cant get it to work.
Code:
/*
* Adds a 'fabrik.loaded' event, which fires when the main Fabrik object has finished initializing
* on page load, and Fabrik is all loaded up and ready to go. Within that, add a 'fabrik.form.autofill.update.end' event,
* which will fire when an autofill is finished on the form. Within that, fire a doSubmit() for the form.
*/
window.addEvent('fabrik.loaded', function () {
Fabrik.addEvent('fabrik.form.autofill.update.end', function (form, json) {
form.form.doSubmit(new Event.Mock(form.form._getButton('Submit')), form.form._getButton('Submit'));
});
});
first of all there is no ./components/com_fabrik.php, what exists is fabrik.php. i tried to create an external js file using the code above and added this code to the php file.
Code:
<SCRIPT type="text/JavaScript" SRC="form_x.js"></SCRIPT>
i get a syntax error. the file located in the root.
im i doing it right?
thanks