Loading content blocks on-the-fly - possible?

Permalink
With a bit of jQuery I can have a user click a button and the content of a DIV will be replaced with the contents of a HTML page on the web. I'm working on a website which is going to have a lot of content/blocks and I want the user to be able to choose what they want to access on the home page, and only that block will load in the content area. Placing all of the blocks on the home page with display:none, and then having the state change to display:block when a block is called would be a solution - however all of the content will still load even if invisible, so load times will be too high.

Is there any way to access the contents of a block via a URL, or is there any code I can embed into a PHP file to do this, or perhaps an add-on exists? The clunky workaround I've considered is to create a bare-bones page in C5 with no theme and minimal HTML and to place my block on this page, and then load the page into my home page when it is called; but as I have many pages to work with I'm hoping there is a more elegant way of achieving this?

 
JohntheFish replied on at Permalink Reply
JohntheFish
My Blocks By Ajax addon can do that in conjunction with a little bit of custom template to provide a button/trigger for the ajax load, or automatically in conjunction with Magic Tabs or Magic Toggle.

For example, you could have a set of tabs and only load the content in a tab when that tab is viewed.

http://www.concrete5.org/marketplace/addons/blocks-by-ajax/...

http://www.concrete5.org/marketplace/addons/magic-toggle/...

http://www.concrete5.org/marketplace/addons/magic-tabs/...

I also have an offer for all 3 together.
http://www.concrete5.org/offers/-/rtgjuo6ylc5m/...
crstf replied on at Permalink Reply
Thanks John, I will take a look at these add-ons.