[cgiapp] Ajax app using CAP -- return JSON or HTML?

2008-05-24 Thread Mark Rajcok
I'm writing a new CGI app, and decided to go web 2.0 -- i.e., use Ajax to update parts of the page, trying to never load an entirely new page. I'm at a crossroad: should the CAP-based back-end normally return JSON data (and let the javascript library (I've decided on jQuery) place and format

Re: [cgiapp] Ajax app using CAP -- return JSON or HTML?

2008-05-24 Thread Ron Savage
Hi Mark I'm at a crossroad: should the CAP-based back-end normally return JSON data (and let the javascript library (I've decided on jQuery) place and format the data on the page), or should the back-end normally return HTML (via html templates), which will be dropped into different,

Re: [cgiapp] Ajax app using CAP -- return JSON or HTML?

2008-05-24 Thread Stewart Heckenberg
I'm at a crossroad: should the CAP-based back-end normally return JSON data (and let the javascript library (I've decided on jQuery) place and format the data on the page), or should the back-end normally return HTML (via html templates), which will be dropped into different, say, divs?