No Tabs in Frontend item form

More
12 years 8 months ago #37877 by ggppdk
Hello,

-- I see that you are using jQueryEasy (Joomla system plugin) to control the (unique) loading of jQuery via a Google hosting URL (which is good because most likely your users have already downloaded the file in their browser cache, since dozens of other pages visited by your current visitor use the same URL = faster loading for your site)

-- The thing is this:
since jQuery version v1.9 , Google no longer provides a "latest version URL" jQuery (i guess to avoid breaking you site unexpectedly in the case that "latest" has a bug or different behavior), instead it requires that you specify a subversion,

So jQueryEasy plugin has a parameter for this, but you have not set it (you had it empty), i entered in it, a value "2" (subversion 2), so now it loads jQuery UI v1.9.2, (now it is OK)

-- But this is not the reason that JS TABs code is not triggered, i will make some tests


-- 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 review. Thanks!

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

More
12 years 8 months ago #37878 by brandonking
That's really good to know. :D
Thanks for your kind explanation.
I will wait for the response.
Regards

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

More
12 years 8 months ago #37879 by ggppdk
Hello,
i found what is happening, implemented a fix

Explanation of Issue
You are loading some (badly written) JS code that overwrites the wind.onload variable, without checking if it already has code in it (e.g. a function) !!

The proper way is to check and append to existing code via creating a JS function that calls both the old and new code ...

Fixing it:
1. Find the bad JS code that destroys the window.onload
OR ...
2. Avoid using the window.onload and instead use
- either jQuery(document).ready(function () {} );
(if jQuery has been loaded)
- or window.addEvent('domready', function() {} );
(if mootools has been loaded)

I placed all 3 ways in your site
- first, check if jQuery was loaded and call tabs code via jQuery
- else check if mootools were loaded and call tabs code via mootools
- finally append to window.onload and hope no code overwrites it without checking

The above solution will always work in item form, and it will also work in other views if site frontend loads jQuery or mootools


-- 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 review. Thanks!

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

More
12 years 8 months ago #37883 by brandonking
Sorry for the trouble, don't have much experience in JS code.
TABs are working great.
I really appreciate your help.

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

More
12 years 8 months ago #37885 by ggppdk
Hello,
regardless of who fault it is,
the important is to have a solid workaround,
which we now have

Regards


-- 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 review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
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