Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    HTML5 Application Caching

    Using HTML5 Application Caching with SmartClient 7/29 snapshot (not page caching), Firefox 3.3.6 or Safari 5.0. The application loads offline when not using SmartClient. Example apps load offline using SmartClient hosted on smartclient.com. But it does not load offline using SmartClient on other domains.

    The html and manifest files looks like:

    Code:
    <html manifest="example.manifest">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <script>window.isomorphicDir='../isomorphic/'</script>
        <script src="../isomorphic/system/modules/ISC_Core.js"></script>
        <script src="../isomorphic/system/modules/ISC_Foundation.js"></script>
        <script src="../isomorphic/system/modules/ISC_Containers.js"></script>
        <script src="../isomorphic/system/modules/ISC_Grids.js"></script>
        <script src="../isomorphic/system/modules/ISC_Forms.js"></script>
        <script src="../isomorphic/system/modules/ISC_DataBinding.js"></script>
        <script src="../isomorphic/skins/Simplicity/load_skin.js"></script>
    </head>
    
    <body>
    
    <script>
    
    isc.Label.create({
        ID:"label",
        contents:"label",
        title:"label"
    })
    
    </script>
    </body>
    </html>
    Code:
    CACHE MANIFEST
    index.html
    ../isomorphic/system/modules/ISC_Core.js
    ../isomorphic/system/modules/ISC_Foundation.js
    ../isomorphic/system/modules/ISC_Containers.js
    ../isomorphic/system/modules/ISC_Forms.js
    ../isomorphic/system/modules/ISC_Grids.js
    ../isomorphic/system/modules/ISC_DataBinding.js
    ../isomorphic/skins/Simplicity/load_skin.js
    ../isomorphic/skins/Simplicity/skin_styles.css
    ../isomorphic/skins/Simplicity/images/black.gif
    ../isomorphic/skins/Simplicity/images/blank.gif
    ../isomorphic/skins/Simplicity/images/grid.gif
    ../isomorphic/skins/Simplicity/images/loading.gif
    ../isomorphic/skins/Simplicity/images/actions/add.png
    //more not listed
    There are two requests to smartclient.com and isomorphic.com

    Code:
    http://www.isomorphic.com/versionCheck/blank.gif?version=SC_SNAPSHOT-2010-07-29/EVAL%20Development%20Only&date=2010-07-29&licence=ISC_EVAL_NIGHTLY
    Code:
    http://www.smartclient.com/versionCheck/blank.gif?version=SC_SNAPSHOT-2010-07-29/EVAL%2520Development%2520Only&date=2010-07-29&licence=ISC_EVAL_NIGHTLY
    a) Is anything not there for SC to load offline?

    b) Must the requests succeed online for smartclient to load?

    c) Are the requests required if you have a licensed copy?

    Thank you

    #2
    Asked and answered a while ago - check with your colleague James.

    Non-licensed builds will request an image from smartclient.com. You can handle this via HTML5 manifest entries that whitelist that URL and/or provide fallback media.

    Comment

    Working...
    X