JSCP sample - all remote

render with remote data 1, click here to see
render with remote data 2, click here to see
Comment

The real exciting thing is coming. In this sample, we have both remote data and remote page templates (here we just put them in same folder of local filesystem in order to demo without web server). so we use the Jscp.Updater.update() method to render it.
Read this sample's HTML source for full details.

Like previous sample, JSCP automatically cache the page template content. In this sample, only on first click the template content would be get from remote (here local file system), on next clicks, it use cached content (data still get from remote), until you refresh the whole page in web browser.

NOTE

Template files and return data should be UTF-8 encoding, if they contain non-ASCII characters.