Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button stops working after changing button content with jquery ajax call #12

Open
j555 opened this issue Apr 25, 2015 · 4 comments
Open

Comments

@j555
Copy link

j555 commented Apr 25, 2015

Is there a way to update the button's contents from Jquery? I am changing the page content with ajax and I am trying to change the main button and drop down buttons as well. However, after the ajax call, the button stops working. Is this possible? Thanks for the help, Jon

@nobitagit
Copy link
Owner

What kind of toggling method are you using, hover or click? Can you share a live link so I can take a look?

@j555
Copy link
Author

j555 commented Apr 25, 2015

I am using a click method. Unfortunately I don't have a live link of the site since it is on my local machine.

The ajax response replaces the entire button contents and that is when it stops working. I don't know if I have to add a parent ID to the javascript so it can find the replaced button or not. The mfb.js file does not get reloaded upon the ajax call, just the button code gets replaced. Let me know what further information I can get you since I don't have the ability to give access to the live code at this time. Thanks agian for the help, Jon

@nobitagit
Copy link
Owner

My suspect is that what's needed is to re-init the menu, at least that's what generally is needed after a live update. Unfortunately I don't think it's possible at the moment as it is. I have to make some tests and see how best this can be solved.

@j555
Copy link
Author

j555 commented Apr 25, 2015

Thank you for all your work. If you need any help testing please let me know. I would be happy to help in any way I can.

Jon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants