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

  1. mystica
    Posted 2 years ago #

    i just followed your tutorial and i added a link to a post on the button "details"
    you can see the page here
    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?


  2. ti2m
    Plugin Author

    Posted 2 years ago #


    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

  • Edge Suite
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.