Picture link problems

davinderdavinder Registered Users Posts: 4 Beginner grinner
edited July 20, 2009 in SmugMug Support
Hi,

I have been developing a ASP.net app that displays a logo picture and a bit of blurb. All info is stored in a DB (including the picture URL on smugmug) and have been having a couple of issues with the images displaying.

If I copy and paste the link out of the DB into my browser it displays the logo fine, but if I set the source of an image using my app the picture only appears sometimes.
If I copy the link out of the image source and paste it into my browser, again the image is fine, so the link is working.

I was wondering if anyone else has been having a similar issue? or has seen this before?

Thanks
Davinder

Comments

  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited July 17, 2009
    davinder wrote:
    Hi,

    I have been developing a ASP.net app that displays a logo picture and a bit of blurb. All info is stored in a DB (including the picture URL on smugmug) and have been having a couple of issues with the images displaying.

    If I copy and paste the link out of the DB into my browser it displays the logo fine, but if I set the source of an image using my app the picture only appears sometimes.
    If I copy the link out of the image source and paste it into my browser, again the image is fine, so the link is working.

    I was wondering if anyone else has been having a similar issue? or has seen this before?

    Thanks
    Davinder
    I presume it's an issue with the HTML you're using in your app. It's hard for us to comment without seeing the HTML.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • davinderdavinder Registered Users Posts: 4 Beginner grinner
    edited July 20, 2009
    Hi jfriend,

    good point about the HTML..... and here it is.....
    <table id="ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder1_fvwLogo" class="FormView" cellspacing="0" border="0" style="border-collapse: collapse;">
    <tbody>
    <tr>
    <td colspan="2">
      <div class="image">
        <img id="ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder1_fvwLogo_Image1" 
          style="border-width: 0px;" src="http://ppa-digital-archive.smugmug.com/photos/586283024_z7n7P-S.jpg"/>
      </div>
      <div class="Buttons">
        <a href="javascript:{showPopup('popupImage');}">Add Logo</a>
        <br/>
        <a id="ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder1_fvwLogo_lbtnRemove" href="javascript:__doPostBack('ctl00$ctl00$ContentPlaceHolder1$ContentPlaceHolder1$fvwLogo$lbtnRemove','')" onclick="return confirm('Are you sure you want to remove this logo?');">Remove Logo</a>
      </div>
    </td>
    </tr>
    </tbody>
    </table>
    

    I've included the entire HTML for the table, but the image bit is where I have the problem, sometimes it displays and sometimes it doesn't. Copying the link into the address bar always seems to work!

    Thanks
    Davinder
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited July 20, 2009
    davinder wrote:
    Hi jfriend,

    good point about the HTML..... and here it is.....
    <table id="ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder1_fvwLogo" class="FormView" cellspacing="0" border="0" style="border-collapse: collapse;">
    <tbody>
    <tr>
    <td colspan="2">
      <div class="image">
        <img id="ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder1_fvwLogo_Image1" 
          style="border-width: 0px;" src="http://ppa-digital-archive.smugmug.com/photos/586283024_z7n7P-S.jpg"/>
      </div>
      <div class="Buttons">
        <a href="javascript:{showPopup('popupImage');}">Add Logo</a>
        <br/>
        <a id="ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder1_fvwLogo_lbtnRemove" href="javascript:__doPostBack('ctl00$ctl00$ContentPlaceHolder1$ContentPlaceHolder1$fvwLogo$lbtnRemove','')" onclick="return confirm('Are you sure you want to remove this logo?');">Remove Logo</a>
      </div>
    </td>
    </tr>
    </tbody>
    </table>
    

    I've included the entire HTML for the table, but the image bit is where I have the problem, sometimes it displays and sometimes it doesn't. Copying the link into the address bar always seems to work!

    Thanks
    Davinder
    Sorry, but I have no idea what's wrong. The image URL looks fine.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
Sign In or Register to comment.