diff options
Diffstat (limited to 'sandbox/lresende/sca/samples/store-appengine-webapp/war/store.html')
-rw-r--r-- | sandbox/lresende/sca/samples/store-appengine-webapp/war/store.html | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sandbox/lresende/sca/samples/store-appengine-webapp/war/store.html b/sandbox/lresende/sca/samples/store-appengine-webapp/war/store.html index 237d5eb1b4..cd9cff53a9 100644 --- a/sandbox/lresende/sca/samples/store-appengine-webapp/war/store.html +++ b/sandbox/lresende/sca/samples/store-appengine-webapp/war/store.html @@ -25,16 +25,20 @@ catalogItems = items; } - dojo.addOnUnload(function(){ - catalog.get().addCallback(catalog_getResponse); - }); + function init() { + try { + catalog.get().addCallback(catalog_getResponse); + } catch (e) { + alert(e); + } + } </script> </head> -<body> +<body onload="init()"> <h1>Store</h1> <div id="store"> <h2>Catalog</h2> |