Concrete5 and Ajax Loading
Permalink
Hi,
Is there any way to "load" only partial page content with ajax (ex. certain Area or even Block -content).
For now I've done some pagetype-based if/else -type clauses with jQuery+php to prevent the whole page content to load. However this is only sitebased, so every site has to have these kinds of coding made always "from scratch" to the pagetype-sources.
It would be nice feature, expecially when it would be used with core-blocks (like form blocks).
I know You can make "Tools" under blocks, but it would mean, that every block and url would have to be "written multiple times". Now my jQuery scripts add simple url-parameters to the form-actions/ajax-popup-links (like concrete5-site/about/?ajax=1&displayArea=Main)
Is there any way to "load" only partial page content with ajax (ex. certain Area or even Block -content).
For now I've done some pagetype-based if/else -type clauses with jQuery+php to prevent the whole page content to load. However this is only sitebased, so every site has to have these kinds of coding made always "from scratch" to the pagetype-sources.
It would be nice feature, expecially when it would be used with core-blocks (like form blocks).
I know You can make "Tools" under blocks, but it would mean, that every block and url would have to be "written multiple times". Now my jQuery scripts add simple url-parameters to the form-actions/ajax-popup-links (like concrete5-site/about/?ajax=1&displayArea=Main)
"I don't think that's really possible without modifying the blocks themselves"
Ok, thank You. I have to just continue use my pagetype-"hack" to use ajax-functionality.
"and even if it is, I don't think you're making anything faster"
It's not the speed I'm looking for, It's just the basic user expirience I'm looking for, like opening form -results in a lightbox rather than opening the whole new page. It would allow to load pagination results with ajax (like the New Concrete5.org -site is now doing in Blog and Marketplace).
Ok, thank You. I have to just continue use my pagetype-"hack" to use ajax-functionality.
"and even if it is, I don't think you're making anything faster"
It's not the speed I'm looking for, It's just the basic user expirience I'm looking for, like opening form -results in a lightbox rather than opening the whole new page. It would allow to load pagination results with ajax (like the New Concrete5.org -site is now doing in Blog and Marketplace).
If you want to go this route, though, you could avoid duplication by putting your tools functionality into a package or into your site's top-level "tools" directory and then it could be shared across multiple blocks.