Okay
  Public Ticket #1245901
Unison breakpoint issue with AJAX page load
Closed

Comments

  •  1
    shahnazkhan started the conversation

    Hi, I am trying to build one page app where pages are just fragments and get loaded based on request instead of full one. After login, I am going to load my home page that is based upon 'horizontal-menu-template'. But after rendering few features are not working like 'ham burger' menu. I did debug and found that unison breakpoints are null and that's why it is not working menu toggle. Please let me know how will I ensure unison breakpoints with AJAX loading. when i render the same page as a HTML in browser, it works fine. please help me.

  •  30
    Andrew replied

    Hi shahnazkhan,

    Thanks a lot for getting in touch. Please share a URL where we can see this to help you.

    You need to make sure you include the required JS for breakpoints to work.

    Thanks.

  •  1
    shahnazkhan replied

    Hi Andrew, right now I am working on localhost so can't share the link. Yes I have included all the JS with AJAX load 

        <script src="js/ui/unison.min.js" type="text/javascript"></script>
        <script src="js/ui/jquery-sliding-menu.js" type="text/javascript"></script>
        <script src="js/core/app-menu.js" type="text/javascript"></script>
        <script src="js/core/app.js" type="text/javascript"></script>
        <script src="js/ui/prism.min.js" type="text/javascript"></script>
        <script src="js/extensions/pace.min.js" type="text/javascript"></script>

    Other JS files are getting loaded with master page.

  •  30
    Andrew replied

    You need those file at the time of loading the page. Loading this via ajax call might not work.

    Thanks.

  •  1
    shahnazkhan replied

    In This case, I can't use any page with AJAX loading, correct?

  •  30
    Andrew replied

    Hello shahnazkhan,

    We are not sure as we have not tried to load those JavaScripts using ajax.

    Thanks.

  •  1
    shahnazkhan replied

    I could able to solve the problem by re-arranging the JS and CSS. Now I can see the breakpoints. 

    Thanks

  •  30
    Andrew replied

    That's great shahnazkhan 


    Closing the ticket here.