This is a forum where members new and old can come to ask questions and get info and opinions. It is not a place to advertise your business or have other forms of advertising, whether it be in your posts or signature.

All links in the forum will not be indexed by Search Engines and any unapproved forms of advertising or spam will be dealt with accordingly, deleted, and that member's account banned.

Forums

Overview » HTML, XHTML, and DHTML » optional variable images with IE browser
Reply

optional variable images with IE browser

Sara Otremba
Member



Since: 03 Aug 2009
Posts: 3
Posted 03 Aug 2009 21:39:44

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.

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.
Patrick Julicher
Official Representative



Since: 04 Feb 2002
Posts: 1,208
Replied 04 Aug 2009 08:49:01
Hi Sara,

Which scripting language are you using for your page? Is this ASP.NET?

Kind regards, Patrick
Sara Otremba
Member



Since: 03 Aug 2009
Posts: 3
Replied 04 Aug 2009 15:35:08
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.
Patrick Julicher
Official Representative



Since: 04 Feb 2002
Posts: 1,208
Replied 04 Aug 2009 15:53:14
Hi Sara,

Could you post a link to the page where the images are not showing?

Kind regards, Patrick

Sara Otremba
Member



Since: 03 Aug 2009
Posts: 3
Replied 04 Aug 2009 17:13:58
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...
Patrick Julicher
Official Representative



Since: 04 Feb 2002
Posts: 1,208
Replied 04 Aug 2009 19:52:34
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

Reply to this topic

Message
Reply
Follow us on Facebook Follow us on twitter Subscribe to the RSS feed
Activate your free membership today | Login | Currency