Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Displaying photo from session variable in IE for Mac

Displaying photo from session variable in IE for Mac

Scheduled Pinned Locked Moved ASP.NET
questiondatabasehelpdiscussion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tantiboh
    wrote on last edited by
    #1

    Here's an interesting compatibility problem. I've set up an application that pulls a given image from a database then places that image in a session variable. That image is then displayed in an IFrame, which links to a separate page that reads and displays the image from the session variable. The user views the entire database record, then can go back to a list and view a different database record (with a different image). This works great in IE, Firefox, Safari, etc, but IE for Mac screws it up. IE for Mac seems to hold the first image in the session variable, and displays that first image whenever another record is displayed. The only way to display the correct image is to refresh the page while the second record is displayed. Any ideas what is causing this? Any thoughts for fixes?

    D I 2 Replies Last reply
    0
    • T tantiboh

      Here's an interesting compatibility problem. I've set up an application that pulls a given image from a database then places that image in a session variable. That image is then displayed in an IFrame, which links to a separate page that reads and displays the image from the session variable. The user views the entire database record, then can go back to a list and view a different database record (with a different image). This works great in IE, Firefox, Safari, etc, but IE for Mac screws it up. IE for Mac seems to hold the first image in the session variable, and displays that first image whenever another record is displayed. The only way to display the correct image is to refresh the page while the second record is displayed. Any ideas what is causing this? Any thoughts for fixes?

      D Offline
      D Offline
      Daniel Santillanes
      wrote on last edited by
      #2

      IMO session variables have nothing to do with the problem you have... more likely is a client's browser cache problem there. I've seen this behavior before in IE, where if you name a picture with the same name to display it, sometimes the file is not downloaded and displayed, and instead uses the picture from the client's cache and displays it, and only when you press refresh is the time when it actually downloads the picture even if it has the same pic name. A workaround I did for this is use random names to display the pictures. I wish I knew a better way :(. daniero

      1 Reply Last reply
      0
      • T tantiboh

        Here's an interesting compatibility problem. I've set up an application that pulls a given image from a database then places that image in a session variable. That image is then displayed in an IFrame, which links to a separate page that reads and displays the image from the session variable. The user views the entire database record, then can go back to a list and view a different database record (with a different image). This works great in IE, Firefox, Safari, etc, but IE for Mac screws it up. IE for Mac seems to hold the first image in the session variable, and displays that first image whenever another record is displayed. The only way to display the correct image is to refresh the page while the second record is displayed. Any ideas what is causing this? Any thoughts for fixes?

        I Offline
        I Offline
        Ista
        wrote on last edited by
        #3

        Write some javascript to detect client type and refresh if neccesary I'm not an expert yet, but I play one at work. Yeah and here too.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups