[Skip to main content](#vessel-content)

#   Ajax load of Category Slider modules not working after update

##

- **[antigeek](/forum/user/14386-antigeek "View antigeek's Profile")**
- [![antigeek's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14386-antigeek "View antigeek's Profile") Topic Author
- [ Offline](/forum/user/14386-antigeek)

Less More

- Posts: 5
- Thank you received: 0
-
-

8 years 6 months ago [\#291058](#291058) by [antigeek](/forum/user/14386-antigeek "View antigeek's Profile")  *[Ajax load of Category Slider modules not working after update](/forum/25-install-update/894400-ajax-load-of-category-slider-modules-not-working-after-update#291058 "-- HikaShop version -- : Business: 3.4.0 -- Joomla version -- : 3.8.6 -- PHP version -- : 7.0 -- Browser(s) name and version -- : Chrome 65.0.3325.181 -- Error-message(debug-mod must be tuned on) -- : none  Hello  We use Hikashop for our clients site and we load category modules in an overlay via ajax when user clicks on a main menu item. This works fine on the desktop version of the site and originally worked well in the iOS (tablet) version of the site until recently updating Hikashop. The code we use for this is:  Currently we are hiding this code from iOS using a PHP if HTTP&#95;USER&#95;AGENT statement as when it runs in iOS it just shows a blank page with no errors in console( the modules do not seem load) however loading any other content this way ( content page or other module) it works fine...e.g. see the privacy policy.  Interestingly If I hardcode a url in place of the myURL variable here it loads the modules ok in iOS: loadContent( '#ovcontent', myURL, '#contentarea' );  But logging myURL to console shows the same result!!?  Just hoping someone could shed some light as to why this stopped working after recent updates to hikashop and if there is a fix for it? Really hoping I can get someone to take a look as I have tried everything I can think of.")* was created by *[antigeek](/forum/user/14386-antigeek "View antigeek's Profile")*

-- HikaShop version -- : Business: 3.4.0
-- Joomla version -- : 3.8.6
-- PHP version -- : 7.0
-- Browser(s) name and version -- : Chrome 65.0.3325.181
-- Error-message(debug-mod must be tuned on) -- : none

Hello

We use Hikashop for our clients site and we load category modules in an overlay via ajax when user clicks on a main menu item.
This works fine on the desktop version of the site and originally worked well in the iOS (tablet) version of the site until recently updating Hikashop.
The code we use for this is: Code:

//Overlay categories Script (AJAX) function loadContent(target, myurl, selector) { jQuery(target).fadeOut('fast', function() { showLoader(); jQuery.ajax({ url: myurl, success: function(data,status,jqXHR) { jQuery(target).html(jQuery(data).find(selector).addBack(selector).children()) .fadeIn('fast', hideLoader()); } }); }); } //Get URL and use loadContent to populate overlay jQuery('a').on('click', function() { if (jQuery(this).hasClass("overlay")) { if (jQuery(this).hasClass("accordeonck")) { } else { jQuery('#overlay').append('&lt;div id="ovcontent"&gt;&lt;/div&gt;'); jQuery('header').fadeOut('normal'); jQuery('#overlay').fadeIn(900); jQuery('#closeova').fadeIn(900); jQuery('#ovcontent').fadeOut('fast',loadContent); jQuery('#load').remove(); var myURL = jQuery(this).attr('href'); console.log(myURL); loadContent( '#ovcontent', myURL, '#contentarea' ); jQuery('html,body').animate({scrollTop:0},900); return false; } } }); function showLoader() { jQuery('#load').remove(); jQuery('#ovcontent').append('&lt;span style="color:#fff;" id="load"&gt;LOADING...&lt;/span&gt;').fadeIn('normal'); } function hideLoader() { jQuery('#load').fadeOut('normal'); } jQuery('#closeova').click(function(){ jQuery('#overlay').fadeOut(900); jQuery('#ovcontent').remove(); jQuery('header').fadeIn('normal'); });

Currently we are hiding this code from iOS using a PHP if HTTP_USER_AGENT statement as when it runs in iOS it just shows a blank page with no errors in console( the modules do not seem load) however loading any other content this way ( content page or other module) it works fine...e.g. see the privacy policy.

Interestingly If I hardcode a url in place of the myURL variable here it loads the modules ok in iOS: loadContent( '#ovcontent', myURL, '#contentarea' );

But logging myURL to console shows the same result!!?

Just hoping someone could shed some light as to why this stopped working after recent updates to hikashop and if there is a fix for it?
Really hoping I can get someone to take a look as I have tried everything I can think of.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5NDQwMC1hamF4LWxvYWQtb2YtY2F0ZWdvcnktc2xpZGVyLW1vZHVsZXMtbm90LXdvcmtpbmctYWZ0ZXItdXBkYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

8 years 6 months ago [\#291072](#291072) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Ajax load of Category Slider modules not working after update](/forum/25-install-update/894400-ajax-load-of-category-slider-modules-not-working-after-update#291072 "-- HikaShop version -- : Business: 3.4.0 -- Joomla version -- : 3.8.6 -- PHP version -- : 7.0 -- Browser(s) name and version -- : Chrome 65.0.3325.181 -- Error-message(debug-mod must be tuned on) -- : none  Hello  We use Hikashop for our clients site and we load category modules in an overlay via ajax when user clicks on a main menu item. This works fine on the desktop version of the site and originally worked well in the iOS (tablet) version of the site until recently updating Hikashop. The code we use for this is:  Currently we are hiding this code from iOS using a PHP if HTTP&#95;USER&#95;AGENT statement as when it runs in iOS it just shows a blank page with no errors in console( the modules do not seem load) however loading any other content this way ( content page or other module) it works fine...e.g. see the privacy policy.  Interestingly If I hardcode a url in place of the myURL variable here it loads the modules ok in iOS: loadContent( '#ovcontent', myURL, '#contentarea' );  But logging myURL to console shows the same result!!?  Just hoping someone could shed some light as to why this stopped working after recent updates to hikashop and if there is a fix for it? Really hoping I can get someone to take a look as I have tried everything I can think of.")*

Hi,

If it still works with other browsers, I don't think that it is linked to the update.
You must have had the issue before but only realised you had it when you tested your website after the update.
It's more likely that the issue comes from some arcane javascript/jQuery which doesn't work properly with that browser.
You could potentially install an older version of HikaShop to see if you still have the issue or not.

Also, if you want others to be able to help with a javascript issue, it would be great to setup a copy of the website where they can replicate the issue. Then, you can post it on stackoverflow. I'm sure someone who knows javascript and jquery a lot better that me would be able to help you there.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5NDQwMC1hamF4LWxvYWQtb2YtY2F0ZWdvcnktc2xpZGVyLW1vZHVsZXMtbm90LXdvcmtpbmctYWZ0ZXItdXBkYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.070 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
