Forums
This topic is locked
optional variable images with IE browser
Posted 03 Aug 2009 21:39:44
1
has voted
03 Aug 2009 21:39:44 Sara Otremba posted:
I am trying to figure out how to get optional variable images to not show up as an image placeholder box with a width=100 and height=100 with a red x in the middle for image unavailable with an IE browser. Firefox handles the code fine and does not show any image box if no image is uploaded into the variable spot.Here is the specific code:
<td width="104">
<img src="<iServicesScriptElement>PHOTO1</iServicesScriptElement>" width="100" height="100"></td>
When no image is uploaded into the PHOTO1 spot, the rendered code is:
<td width="104">
<img src="" width="100" height="100"></td>
And IE does not handle this as no image but rather as an image that is unavailable. Firefox sees this as no image and thus no image placeholder and red x show in this browser.
Replies
Replied 04 Aug 2009 08:49:01
04 Aug 2009 08:49:01 Patrick Julicher replied:
Hi Sara,
Which scripting language are you using for your page? Is this ASP.NET?
Kind regards, Patrick
Which scripting language are you using for your page? Is this ASP.NET?
Kind regards, Patrick
Replied 04 Aug 2009 15:35:08
04 Aug 2009 15:35:08 Sara Otremba replied:
The main web pages are coded in asp.net. There is a step in the web page workflow that calls a document containing the html code for the image variables. The html code is then inserted directly into one of the asp.net web pages which is then displayed in the browser. The document with the html code does not contain the <html></html> tags since the document itself is not rendered directly to the browser.
Any help you can provide would be greatly appreciated. I have tried just about everything I could think of. I even tried using the ALT parameter which does work to show the alternate text but it also still shows a red x in the picture placeholder as well.
Any help you can provide would be greatly appreciated. I have tried just about everything I could think of. I even tried using the ALT parameter which does work to show the alternate text but it also still shows a red x in the picture placeholder as well.
Replied 04 Aug 2009 15:53:14
04 Aug 2009 15:53:14 Patrick Julicher replied:
Hi Sara,
Could you post a link to the page where the images are not showing?
Kind regards, Patrick
Could you post a link to the page where the images are not showing?
Kind regards, Patrick
Replied 04 Aug 2009 17:13:58
04 Aug 2009 17:13:58 Sara Otremba replied:
To see the page with the issue,
1. go to advertising.newszap.com/DEtest/WFCategoryClassification.aspx
2. select the 'Announcements' category and the 'Car Pool' classification
3. Select the 'Your Ad Package' label (this selects the package) and click on the NEXT button at the bottom right
4. On the screen that is returned, select one date in the Delaware State News publication
5. Click Next and fill something in the 2 required fields (Description and Phone), click next
6. At step 4, you can leave the default preview selected and hit next
7. If you are using IE, you will see 8 picture box place holders where an image could be uploaded. (to Upload an image, a user just selects the ADD button at the bottom).
This is a test website at one of my clients. I do not have a public address for my website internally that I use to test with. If you need anything else, please let me know.
Thanks so much...
1. go to advertising.newszap.com/DEtest/WFCategoryClassification.aspx
2. select the 'Announcements' category and the 'Car Pool' classification
3. Select the 'Your Ad Package' label (this selects the package) and click on the NEXT button at the bottom right
4. On the screen that is returned, select one date in the Delaware State News publication
5. Click Next and fill something in the 2 required fields (Description and Phone), click next
6. At step 4, you can leave the default preview selected and hit next
7. If you are using IE, you will see 8 picture box place holders where an image could be uploaded. (to Upload an image, a user just selects the ADD button at the bottom).
This is a test website at one of my clients. I do not have a public address for my website internally that I use to test with. If you need anything else, please let me know.
Thanks so much...
Replied 04 Aug 2009 19:52:34
04 Aug 2009 19:52:34 Patrick Julicher replied:
Hi Sara,
I had a look at the page and googled a bit on Image Placeholders showing in IE and FF. What I read everywhere, is that showing the image placeholders in IE is the default behavior. FF not showing them is out of the ordinary.
I'm not familiar with .NET so I cannot think of how you show the images (RepeaterControl???) on the page. Maybe .NET offers a way to hide an image-tag if the source is empty? I would choose to show a default image if the source is empty.
Hope this helps in some way?
Kind regards, Patrick
I had a look at the page and googled a bit on Image Placeholders showing in IE and FF. What I read everywhere, is that showing the image placeholders in IE is the default behavior. FF not showing them is out of the ordinary.
I'm not familiar with .NET so I cannot think of how you show the images (RepeaterControl???) on the page. Maybe .NET offers a way to hide an image-tag if the source is empty? I would choose to show a default image if the source is empty.
Hope this helps in some way?
Kind regards, Patrick