Announcement

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

    Custom Skins

    Per your recommendation, I've copied one of the skins to a new location and have referenced the skin in my JSP with

    <isomorphic:loadISC skin="Lite" runat="server" isomorphicURI="/lite/isomorphic/"/>

    which produces this JS:

    <SCRIPT SRC=/lite/isomorphic/skins/Lite/load_skin.js?isc_version=5.5.1.js></SCRIPT>

    It, however, is still attempting to download images from the SmartClient skin directory.

    I looked at load_skin.js and I see

    //----------------------------------------
    // Specify skin directory
    //----------------------------------------
    // must be relative to your application file or isomorphicDir
    isc.Page.setSkinDir("[ISOMORPHIC]/skins/SmartClient/")

    embedded in the file. I changed this to "Lite" but I'm still having problems. I deleted the .gz version hoping SmartClient would regen (as my WinZip won't create this file for me), but it has not. Perhaps it's a cache thing. I've deleted my browser cache and I've restarted the JBOSS server, to no avail.

    Anyway, the documentation doesn't address this. I would think the skindir would be passed into the system by <isomorphic:loadISC> instead of being hardcoded in the .JS file.

    #2
    It's working now. Not sure what did it, clearing the client cache, restarting the server, closing the browser window, or a combination.

    I downloaded gzip and zipped up the load_skin.js file.

    Comment


      #3
      It was probably the cache. IE in particular is notorious for sometimes not actually clearing the cache until you clear it, close all instances of the browser, open it and clear the cache again. Typically a Ctrl-R will work, but YMMV.

      The reason for the seeming duplication of the skin name is that the "skin" attribute of the loadISC tag simply constructs a path to the default skin location. The location of the load_skin.js file, however, is not necessarily the same as that of the skin images. For example, our own website uses a custom skinDir to fetch skin images from Amazon's S3 service when our server is under heavy load.

      Comment


        #4
        I also think part of my problem was I copied the "Standard" skin into the "Lite" skin directory which had "SmartClient" artifacts previously. So my refreshes kept showing the SmartClient images until the IE cache finally figured out there were new files.

        So I am correct in stating that the isc.page.setSkinDir() needs to be changed when custom skins are deployed, yes? The docs don't say so.

        Actually, what I've done to resolve this was to add the line to my JSP:

        <isomorphic:loadISC skin="Lite" runat="server" isomorphicURI="/lite/isomorphic/"/>
        <script>isc.Page.setSkinDir("[ISOMORPHIC]/skins/Lite/");</script>

        So that I don't need to modify the load_skin.js file.

        NOPE, THAT DON"T WORK. The load_skin.js file calls loadSkin() at the bottom of the file. Looks like I need to modify the file after all.
        Last edited by tgochenour; 26 Jan 2007, 09:26.

        Comment


          #5
          Yes - that's correct.
          We'll make sure the docs get updated to make this clear

          Regards
          Isomorphic Software

          Comment

          Working...
          X