[Load jQuery once] JS error in advanced search module

More
11 years 6 months ago #40835 by hede
Code:
Uncaught TypeError: Object [object Object] has no method 'autocomplete'
is thrown in tmpl-common.js: Line 283
Code:
// add Simple text search autocomplete jQuery( "input.fc_index_complete_simple" ).autocomplete({ source: function( request, response ) { el = jQuery(this.element);
Can I solve this without touching the FC code?

FF on Win10, FLEXIcontent version 3.0.10 on Joomla 3.4

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago #40837 by ggppdk
Hello

usually such error is multiple loading of jQuery AND / OR of jQuery UI

I have a Javascript error in my page, what to examine/do first

Use a plugin to load it once OR disable jQuery in ALL your site extensions and load it once in you joomla template (in index.php of the template)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago - 11 years 6 months ago #40852 by hede
I dont have additional modules or components installed. Plus I checked the delivered HTML document and there is jquery loaded only once and ui is not loaded at all. Even when switching to a Joomla default template the error is still there.

Live Site: http://www.devj3.kiteboarding-windsurfi ... Itemid=101

FF on Win10, FLEXIcontent version 3.0.10 on Joomla 3.4
Last edit: 11 years 6 months ago by hede.

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago #40853 by ggppdk
Hello

even if this is a bug of FLEXIcontent it indicates a problem with loading of jQuery UI,

e.g. you have disabled loading of jQuery in FLEXIcontent component parameters

-- you can view page source, but i cannot, because i don't have a URL to page


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago #40854 by hede
Now you have too :)

I did upload my local installation to:
Live Site: http://www.devj3.kiteboarding-windsurfi ... Itemid=101

FF on Win10, FLEXIcontent version 3.0.10 on Joomla 3.4

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago #40857 by ggppdk
Hello

goto FLEXIcontent component options

and inside "Options" TAB make sure that jQuery is set to be loaded


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.407 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save