WordPress.org

Ready to get started?Download WordPress

Forums

Advanced AJAX Page Loader
[resolved] Javascript "onclick" works but no ajax behaviour (4 posts)

  1. ekino
    Member
    Posted 11 months ago #

    I am using AAPL on a div named excerpt. I want to use this whole div as an link to the full content.
    To realize this I am using Javascript onclick-Event.

    <div class="excerpt" onclick="location.href='link-to-full-content';" >
    </div>

    The forwarding to the content via onlick works, BUT:
    The site gets completeley reloaded, so AAPL is ignored.

    My question is:
    How could I tell AAPL to detect that specific onclick?
    -Or which alternatives are given to reach my aimes?

    Thanks for help!

    http://wordpress.org/extend/plugins/advanced-ajax-page-loader/

  2. valentinalisch
    Member
    Posted 10 months ago #

    I'm interested as well!

  3. valentinalisch
    Member
    Posted 10 months ago #

    Found a solution to this after looking into the plugins files.

    Just use:

    <div class="excerpt" onclick="AAPL_loadPage('link-to-full-content');" >
    </div>

    Should be working just fine.

  4. ekino
    Member
    Posted 10 months ago #

    Great!
    Thank you very much :)

Reply

You must log in to post.

About this Plugin

About this Topic