Exchanging data between the browser and server using AJAX, or popping up a dialog using AJAX, from Concrete 5 is both straightforward and confusing. Straightforward because, once you boil it down to the basics, there is not much to it. Complicated because Concrete5 provides 3 slightly different ways of declaring AJAX action handlers. Which works best depends a lot on how you want to organise your package and in what context you want to use the AJAX transaction.
Rather than carry on reading about all the various combinations and permutations, install the package Ajax Lessons Add-On on a development site and explore the behaviour of the installed blocks during Add, Edit and View.
There is more documentation of the package to go with the lessons and the source contains plenty of comments to show how it works. For the deep theory, see JavaScript, jQuery and Concrete5
Tags
Related Tutorials
- 7
- 0
- 6
- 0
- 10
- 0
- 6
- 0
- 14
- 0
- 6
- 0
- 12
- 0
- 7
- 0
- 4
- 0
- 8
- 0
- 6
- 0
- 6
- 0
- 10
- 0
- 28
- 0
- 15
- 0
- 10
- 0
- 6
- 0
- 3
- 0
- 8
- 0
- 26
- 0
- 10
- 0
- 6
- 0
- 8
- 0
- 8
- 0
- 11
- 0
- 4
- 0
- 8
- 0