WordPress.org

Ready to get started?Download WordPress

Forums

Arconix Shortcodes
[resolved] Accordion and Toggle not working within ajax div (2 posts)

  1. maneshtimilsina
    Member
    Posted 1 year ago #

    Hi John Gardner,
    Thanks for great plugin but I get problem using it within the div loaded through ajax.
    http://cogentdatasolutions.com/cogentdevuser/industries/healthcare/
    http://cogentdatasolutions.com/cogentdevuser/industries/insurance/

    These are two links I have used your plugin. It work fine when I go through main menu but when I click any link in left sidebar of the page (either Healthcare or Insurance) accordion do not work in this case.
    I hope you will help me to figure out the problem.
    Thank you.

    http://wordpress.org/plugins/arconix-shortcodes/

  2. John Gardner
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry for the trouble you're having. I've seen things like this before with my portfolio plugin and lightbox scripts. The accordion script has to be refreshed after an AJAX load or it won't operate properly. The function in your theme that calls the AJAX operation should have a callback function. In that function just copy the accordion code from my javascript file.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.