1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Click to change content AJAX

Discussion in 'XenForo Development Discussions' started by simbolo, Apr 17, 2012.

  1. simbolo

    simbolo Well-Known Member

    I'm sure there's a simple way to do this with the xF framework. What I'm looking to do is on a click of a button retrive the data (a parsed template file) and replace a section on the page with that content.

    AP-News-Feed-AJAX.png

    When the user clicks the "My News" it should replace the content below it with the ID #newsContent.

    Should be a fairly simply setup, just don't want to reinvent the wheel if it already exists within xF. Also I know the Scratchpad example has something close but not quite what I am thinking. It would essentially be close to that except without the form, it would just be a clicked link ala like the "OverlayTrigger" class for the overlays.
     
  2. simbolo

    simbolo Well-Known Member

    Mod's please move this to Troubleshooting. Too many windows open and posted in the wrong forum.
     
  3. Brogan

    Brogan XenForo Moderator Staff Member

    Moved to Development Discussions as it's not a troubleshooting issue.
     
    simbolo likes this.
  4. simbolo

    simbolo Well-Known Member

    Good point. Thanks Brogan
     
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  6. simbolo

    simbolo Well-Known Member

    That'll work, thanks Jake.
     

Share This Page