Click to change content AJAX


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.


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.