Saturday, April 02, 2011 at 9:17 PM.
beautSuite.loadJsonIntoCache
on loadJsonIntoCache () {
<<Changes
<<3/21/11; 9:21:32 AM by DW
<<Created.
local (pta, pt);
bundle { //make sure pagetableaddress is defined, and it has an adruser
try {
pta = html.getpagetableaddress ()}
else {
pta = @pt;
new (tabletype, pta);
html.setpagetableaddress (pta)};
if not defined (pta^.adruser) {
pta^.adruser = nil}};
system.temp.beaut.cache.text = river2Suite.viewJsonNews3 ();
system.temp.beaut.cache.ctAccesses = 0;
local (path = "/static.scripting.com/beaut/tmp/dave/myJson.json");
s3.newobject (path, "onGetRiverStream (" + system.temp.beaut.cache.text + ")");
system.temp.beaut.cache.urlJson = "http:/" + path;
};
bundle { //test code
loadJsonIntoCache ()}
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.