jQuery problem when Chronoms form is loaded

Resolve jQuery conflicts when loading a ChronoForms form.

Overview

The issue occurs because jQuery is not properly loaded on the page containing the CF form, causing scripts that depend on it to fail.
Ensure jQuery is loaded by adding the Joomla framework call to your template, which initializes jQuery and resolves the conflict.

Answered
jj jj135 08 Dec, 2014
Hi!

I have a jquery script that appends a div to list menu items. The div is used to show an icon.

This jQuery script works fine on all pages accept on the page where a CF form is loaded. Then the div for the icon is not added.

I guess there is some script conflict? How do I debug this?

In firebug I do get two erros only on the form page:

ReferenceError: jQuery is not defined.

Kind regards,
Jip.
jj jj135 09 Dec, 2014
Answer
I solved this by adding this to my template:

JHtml::_('jquery.framework');

Not sure why, but it works ;-)
This topic is locked and no more replies can be posted.