java script it has stopped working

mvilela

Member
joomla 3.82 fabrik 3.8 from ghitub 01-12-2017 templates Hydrogen - Home Gantry 5 and JSN Boot PRO I use java script on some forms. Now when I reactivate a form already used previously I confirm that it has stopped working.
 

Attachments

  • screenshot-www.asespedal.net-2017-12-02-21-11-58.jpg
    screenshot-www.asespedal.net-2017-12-02-21-11-58.jpg
    54.9 KB · Views: 42
  • screenshot-www.asespedal.net-2017-12-02-21-13-57.jpg
    screenshot-www.asespedal.net-2017-12-02-21-13-57.jpg
    53 KB · Views: 41
Don't use $() in your scripts. If you want to use jQuery, specify jQuery().

To get values of Fabrik elements, always use ...

Code:
this.form.formElements.get('yourtable___yourelement').getValue();

Sometimes $('yourtable___yourelement').value or .getValue() will work, if it's a simple element type where the form input has the element id. But in many case (like date elements) that's not the case. By using the Fabrik element object's getValue(), you always get the correct value.

To set values, don't use jQuery().value, use ...

Code:
this.form.formElements.get('yourtable___yourelement').update(whatever);

That may not be the issue you are having, but it's how you should write that code anyway.

Are you seeing any JS errors in the dev tools console?

-- hugh
 
I could not get over the situation because I must have some conflict on my page that does not allow javascript. To test I made another installation of Joomla and Fabrik on the server and javascript works.
Thanks.
 
I could not get over the situation because I must have some conflict on my page that does not allow javascript. To test I made another installation of Joomla and Fabrik on the server and javascript works.
Thanks.
Do you see any errors in the dev tools console when you load the broken site?

Sent from my HTC6545LVW using Tapatalk
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top