• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Determining if an image exists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining if an image exists


  • Subject: Re: Determining if an image exists
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 17 Feb 2005 16:06:32 -0800

Nice solution!

On Feb 17, 2005, at 3:47 PM, Olav Anderson wrote:

I use it to prevent a "broken image" icon if there isn't an image to load.

I add: onError="this.style.display='None'"

to the WOImage in the wod attributes.

If there is no image then nothing is displayed.

This seems to work fine for all browsers.

--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Determining if an image exists
      • From: David Griffith <email@hidden>
References: 
 >Determining if an image exists (From: David Griffith <email@hidden>)
 >Re: Determining if an image exists (From: Olav Anderson <email@hidden>)

  • Prev by Date: Re: The great disappearing model trick!
  • Next by Date: Re: Page form or SubComponent form Design Pattern?
  • Previous by thread: Re: Determining if an image exists
  • Next by thread: Re: Determining if an image exists
  • Index(es):
    • Date
    • Thread