Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 4 of 4

Thread: http https external image in template

  1. #1
    Dimmer is offline Member
    Join Date
    May 2008
    Location
    London
    Posts
    40

    Default http https external image in template

    I need to add code for an security cert image into the main template.

    The image references an external site via http or https depending on whether the storefront page is ssl or not.

    Will the url automatically change when the site goes into ssl or do I have to differentiate somehow?

    Al
    Alan
    Version (Code/DB): AspDotNetStorefront ML 7.1.0.0/7.1.1.0 - with modifications
    www.stuff-uk.net

  2. #2
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    Yes, it will definitely change and security CAPTCHA image URL will change accordingly also.

  3. #3
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    No - you will need to use an xmlpackage to detect if you're on a https page or not & output the appropriate image code.


    TTFN

    BFG

  4. #4
    Dimmer is offline Member
    Join Date
    May 2008
    Location
    London
    Posts
    40

    Default

    I found a better solution.

    The image was referenced in some javascript

    "http://www.domain.com/skins/skin_1/images/trustlogo.gif"

    If you change the javascript to reference the image like this

    "//www.domain.com/skins/skin_1/images/trustlogo.gif"

    It switches between http and https automatically.
    Alan
    Version (Code/DB): AspDotNetStorefront ML 7.1.0.0/7.1.1.0 - with modifications
    www.stuff-uk.net