Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • yomas33 Friend
    #837416

    Hello !

    I’m using Bootstrap js library to make panels and accordions in article pages.
    The Ajax loading page effect is great but make the anchors based script bug…

    For example the "Carrers" in Joomlart page examples don’t work while Ajax enabled in theme options.

    Is there a way to manage this out without disabling Ajax ?

    Thanks in advance.

    Best Regards,
    Yoann

    Pankaj Sharma Moderator
    #837849

    Hi
    the AJAX option is only designed for the content types in the template . (isotop layout and in the other Joomla items like tagged items menu type .) On special page blank content it will not found the content block and redirected to homepage again , Turn off the ajax option on this type like given in the documentation here

    yomas33 Friend
    #837850

    Hello,

    I understand how to enable/disable ajax, The pages where I’m using javascript is in the projects pages.

    I do not want to disable Ajax, just want to know how is it possible to make js code work in projects pages.

    I’ve not tried yet to initiate the js with document.ready and using preventdefault…

    If you have any issues WITHOUT DISABLING AJAX MODE please let me know.

    Best regards,
    Yoann

    Pankaj Sharma Moderator
    #837877

    Hi
    Try below solution
    Go to file "/js/ajax.js" in template "ja_mono".
    find and remove this code

        var newurl = url,
                currurl = location.href.split('#')[0];
            if ((newurl == currurl || newurl + '/' == currurl) && !data) return false;
    

    same url were ignored to in Ajax function .

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 3 replies, has 2 voices, and was last updated by  Pankaj Sharma 8 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum