Support » Plugin: Edge Suite » click on button without refreshing the home page

  • 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/

Viewing 1 replies (of 1 total)
  • Plugin Author ti2m

    (@ti2m)

    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

Viewing 1 replies (of 1 total)
  • The topic ‘click on button without refreshing the home page’ is closed to new replies.