Announcement

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

    Question about src:"blank" in skins

    Hi, I am working with 9.1d and during a common usage it is plenty of 404 errors due to these calls in load_skin.js

    Code:
    src: "blank"
    should not be they be written as

    Code:
    src: "[SKINIMG]/blank.gif"
    in the same way they be in 9.0 or I am missing something?

    Regards.

    #2
    No need, this special value is translated by the code to the system-wide blank image URL which is set on Canvas.

    This would not normally lead to 404s. Please let us know how you are reproducing that.

    Comment


      #3
      Hi, we have these files combined into one:

      ISC_Core.js
      ISC_Foundation.js
      ISC_Containers.js
      ISC_Grids.js
      ISC_Forms.js
      ISC_DataBinding.js
      ISC_Calendar.js
      ISC_PluginBridges.js
      ISC_RichTextEditor.js

      and then the load_skin.js loaded

      We have also a lot of customizations, but loaded after them and without overriding any original style.

      The problem is that the browser always tries to reach:

      http://server:port/context/images/blank

      while our SKINIMG is in a completly different location.


      Regards.

      Comment


        #4
        Not sure if this further information was intended to help reproduce the problem? We need a way to reproduce the problem.

        Comment


          #5
          I will try to prepare a simple case to reproduce it, but it could be complicated, since as I have told, we have a lot of customizations.

          Could you please point me to the code in charge of translate "blank" into a proper path? Maybe looking at there I can figure a solution by myself.

          Thanks.

          Comment


            #6
            Search for _$blank and you can see it being handling in StretchImg, ListGrid, FormItem and TreeGrid is various scenarios.

            Comment


              #7
              Ok, I think it is a collateral issue due the way we load sources.

              Your code is plently of things like:

              Code:
              var libs = 
              	[
                      "debug/version.js",  // check for module version mismatches
              
                      "widgets/Calendar",
                      "widgets/Timeline"
              	];
              In all places where the string "debug/version.js" is written, it should be "debug/version", in order to avoid a 404 trying to load http://..../version.js.js

              In our case due to that there was a JS error that prevents to load our custom setSkinDir

              Fixing the lib call has fixed us also the other issue.

              Please let me know whenever you fix it in your sources in order to upgrade my SC copy

              Thanks and regards.

              Comment


                #8
                I have tried 2013-08-21 9.1d and still there is the 404 error trying to load http://..../version.js.js

                Please let me know when it be fixed to upgrade my sources.

                Thanks and regards.

                Comment


                  #9
                  We've made a change to remove the unnecessary .js extensions in the "libs" array strings. Please try the next nightly build.

                  Regards
                  Isomorphic Software

                  Comment

                  Working...
                  X