Announcement

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

    Smartclient 9.1 missing image fiiles

    Be sure your post includes:

    1. v9.1p_2014-05-28/Pro Deployment (built 2014-05-28)

    2. Chrome - 35.0.1916.153 m and Firefox - 30.0

    3. Not a server side problem

    4. Following is the request and response on the browser (Firefox)

    *************************************************************************************************
    Request URL: http://<Confidential_Information>/isomorphic/skins/<Confidential_Information>/images/SectionStack/header_closed_end.gif
    Request Method: GET
    Status Code: HTTP/1.1 404 Not Found
    Request Headers 15:03:33.000
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0
    Referer: http://<Confidential Information>
    Host: <Confidential_Information>
    Connection: keep-alive
    Accept-Language: en-US,en;q=0.5
    Accept-Encoding: gzip, deflate
    Accept: image/png,image/*;q=0.8,*/*;q=0.5
    Sent Cookie
    sam_session_user_role: <Confidential_Information>
    sam_session: <Confidential_Information>-70e61936-2d43-47ce-8ab7-34778ec2bb6a
    JSESSIONID: 54C9ECDD8C7AFB4C421FA832CC61B3FA
    <Confidential_Information>Users: admin
    Response Headers Δ132ms
    Vary: Accept-Encoding
    Server: <Confidential Information>
    Expires: Wed, 31 Dec 1969 19:00:00 EST
    Date: Wed, 11 Jun 2014 19:03:33 GMT
    Content-Type: text/html;charset=UTF-8
    Content-Encoding: gzip
    Connection: close
    Cache-Control: private
    *************************************************************************************************

    It can be clearly seen from the message that a request was made for .gif file which was not found in the image files. I tried to search all the .gif files under SectionHeader, and there are none but the previously supplied .png files are still present, but are not required as server won't search for it.

    5. Javascript N/A

    6. Sample code N/A
    Last edited by shresthg_des; 12 Jun 2014, 04:27. Reason: removing some irrelevant info

    #2
    You've removed the skin name, leaving us unable to investigate whether there's any framework problem.

    However, be sure to look at the QuickStart Guide instructions on switching skins and custom skins - you may be loading two skins at once, which leads to mixed settings that can cause this kind of issue.

    Another possibility is mixing a customized skin based on an older version of SmartGWT with a new version of the actual runtime (ISC_Core.js et al). This won't work - the QuickStart Guide also covers best practices here.

    Finally, in the case this is related to intentional customizations on your part, this media request is controlled by the ImgSectionHeader > "background" AutoChild > "src" attribute, although in modern skins and in the browsers listed, there would be no media request at all (see CSS3Mode discussion in Skinning overview for details).

    Comment


      #3
      Smartclient 9.1 missing image fiiles - Enterprise

      Apologize for the missing information - skin name is Enterprise

      Comment


        #4
        OK - stock Enterprise skin does not have this problem, and as noted does not even use images at all in the listed browsers, so please take a look at our other points above.

        Comment


          #5
          Thanks for all the quick replies! Really appreciate them.

          The issue is still lingering around and it seems that there is a workaround to the problem -
          I changed the following code found in ISC_Foundation.js
          Code:
          isc._commonMediaProps = {
              icon:"[SKIN]SectionHeader/opener.gif",
              overflow:"hidden",
              baseStyle:"sectionHeader",
          to
          Code:
          isc._commonMediaProps = {
              icon:"[SKIN]SectionHeader/opener.png",
              overflow:"hidden",
              baseStyle:"sectionHeader",
          AND

          Code:
          backgroundDefaults : isc.addProperties({
                  titleStyle:"sectionHeaderTitle",
          
                  // These images now live in SectionHeader/ in the provided skins, but SectionStack/
                  // is left as the default for backcompat with customer skins.
                  src:"[SKIN]SectionStack/header.gif",
          To

          Code:
           backgroundDefaults : isc.addProperties({
                  titleStyle:"sectionHeaderTitle",
          
                  // These images now live in SectionHeader/ in the provided skins, but SectionStack/
                  // is left as the default for backcompat with customer skins.
                  src:"[SKIN]SectionHeader/header.png"
          Can the code change guide you to guide me to where I must have gone wrong?

          Comment


            #6
            Yes, it sounds a lot like what you've done wrong is exactly what we mentioned in our first response:

            However, be sure to look at the QuickStart Guide instructions on switching skins and custom skins - you may be loading two skins at once, which leads to mixed settings that can cause this kind of issue.

            Another possibility is mixing a customized skin based on an older version of SmartGWT with a new version of the actual runtime (ISC_Core.js et al). This won't work - the QuickStart Guide also covers best practices here.
            Also, it's strange to find you modifying core framework files, since as we already covered in our first response, these properties are all settable via skins:

            Finally, in the case this is related to intentional customizations on your part, this media request is controlled by the ImgSectionHeader > "background" AutoChild > "src" attribute, although in modern skins and in the browsers listed, there would be no media request at all (see CSS3Mode discussion in Skinning overview for details).

            Comment

            Working...
            X