No Tabs in Frontend item form

More
12 years 1 day 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...

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

More
12 years 15 hours 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 11 hours 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...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.063 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