WordPress.org

Ready to get started?Download WordPress

Forums

Edge Suite
click on button without refreshing the home page (2 posts)

  1. mystica
    Member
    Posted 1 year ago #

    Hi,
    i just followed your tutorial and i added a link to a post on the button "details"
    you can see the page here
    http://www.veganholic.com/eldoland02/
    i'd like to get the post in the main div without refreshing the page
    in edge animate, the code on the button (click) is
    window.open("http://www.veganholic.com/eldoland02/?p=1", "#main");
    i'm not sure it is right... probably not!
    is there a way to get the post loaded inside the main div without refreshing the home page?
    thanks!

    http://wordpress.org/extend/plugins/edge-suite/

  2. ti2m
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    that will be a bit hard to do. window.open will open the given link within the current window and results in a page reload. What you would need to do is get only the HTML for the post by an AJAX call (e.g. through JQuery) from wordpress and then place the new HTML within the main DIV (and with this replace the old HTML). If you really want to get into it look for a plugin which does what I explained (mainly makes AJAX calls for posts). I'm not sure, but e.g. 'Advanced AJAX Page Loader' doesn't look to bad. But I can't give any recommandations as I don't know the plugins, sorry.

    Cheers, timm

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.