• Resolved Chrisa441

    (@chrisa441)


    I have a site built with ajax involved and it is causing the menu not to close when you click on a selected menu item, you have to close the menu manually.

    we are trying to figure out a solution and my web designer said she tried to use some custom javascript, but the plug-in isn’t allowing for the custom javascript to override. any suggestions?

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Peter Featherstone

    (@peterfeatherstone-1)

    Hi there,

    Please provide a site URL and steps to replicate the issue as without any context Im afraid its impossible to say.

    All the best

    Peter

    Thread Starter Chrisa441

    (@chrisa441)

    sure.

    here it is:

    http://www.chrisarvan.com/

    just try it on any mobile device

    we have it set up correctly but because of ajax, the plug-in isn’t seeing that the pages are changing and won’t close.

    http://i1300.photobucket.com/albums/ag89/chrisarvan/Screen%20Shot%202017-04-12%20at%204.51.17%20PM_zpsbpvvztxb.png

    • This reply was modified 9 years, 2 months ago by Chrisa441.
    Peter Featherstone

    (@peterfeatherstone-1)

    Hi there,

    You have not turned on the Close Menu on Link Clicks option in the screenshot you sent over or are you saying that is what is not working?

    Peter

    Thread Starter Chrisa441

    (@chrisa441)

    Hi Peter,

    I’m sorry, I made a mistake in my description of the problem.

    The reason we are using Ajax is so that the audio player does not stop when you change pages.

    For some reason, When we turn on Close Menu on Link Clicks it stops the audio player when it changes pages.

    Peter Featherstone

    (@peterfeatherstone-1)

    Hi there,

    I just tried running this in the console on your site and it closed the menu successfully:

    jQuery('#responsive-menu-button').click();

    Your web developer should be able to listen for any clicks on my menu links items and just trigger that snipper above when any are clicked.

    My plugin doesn’t overwrite any custom JavaScript so I’m not sure what issue you are facing specifically – can you show me what your web developer has tried so far?

    Peter

    Thread Starter Chrisa441

    (@chrisa441)

    Hi Peter,

    She said she already tried that, this was her response:

    I already tried that, the problem is that when I try to listen to any click event on the menu item, nothing happens, I tried to do an alert on menu click, but nothing happens.

    Peter Featherstone

    (@peterfeatherstone-1)

    Hi there,

    Can you provide the code she used to do this so I can take a look as theres no reason that you shouldnt be able to do that.

    Peter

    Thread Starter Chrisa441

    (@chrisa441)

    Hi Peter,

    Nevermind, she said she was making a small mistake in the code. We got it working!

    Thanks!

    Peter Featherstone

    (@peterfeatherstone-1)

    Hey Chris,

    Great news and thanks for letting me know.

    Peter

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Working with Ajax’ is closed to new replies.