The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Apache help ejbrever UNIX for Dummies Questions & Answers 2 08-24-2006 06:50 AM
Apache ebethea27703 UNIX for Dummies Questions & Answers 1 05-18-2006 06:44 PM
apache norsk hedensk UNIX for Dummies Questions & Answers 5 02-08-2003 07:45 AM
Apache! hassan2 UNIX for Advanced & Expert Users 1 08-07-2002 01:27 PM
Apache Vijayanand IP Networking 1 07-02-2002 05:14 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 07-27-2001
Registered User
 

Join Date: Jul 2001
Location: Sweden, Sthlm
Posts: 3
Apache

Sometimes the webserver doesnīt find a picture or there isīnt any. Then it shows a deufault picture. If i want to have diffrent pictures on diffrent catalogs if a picture doesnīt exist. The thing is that i want diffrent picture if itīs a button picture or if itīs a another picture that doesnīt exist.

Is that possible?

Regards

Henke

Last edited by henke; 07-27-2001 at 04:34 AM.
Forum Sponsor
  #2  
Old 07-30-2001
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,434
I don't think you can do this easily. However, www.apache.org will have on-line docs (and search capabilities) to help better answer this.

Try:

http://www.apache.org/search.html
  #3  
Old 07-31-2001
flim flam flamma jamma
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
well if an img is not avaliable you would get this gif the famous red X. apache_pb.gif


you could always swap out that gif for something you wanted in there in the first place. but that would be rather global.
  #4  
Old 07-31-2001
alwayslearningunix
Guest
 

Posts: n/a
I would have thought this to be an issue related to the HTML in the page, rather than a web server one because, as has already been stated, it's not something which is perceived as part of it's function (as far as I know).

Making use of the ALT property in your IMG tag to specify an alternate image to display if the primary one is not available would work just fine. It is more granular in the sense it is based on each individual page, but if you're making use of static HTML templates or better still one of the server side scripting languages to dynamically generate content, it would be flexible and most of all simple

Just my thoughts on this.

Regards.
  #5  
Old 07-31-2001
ober5861's Avatar
Registered User
 

Join Date: Jul 2001
Location: Gettysburg, PA
Posts: 116
Umm... someone tell me if I'm wrong, but the ALT property of the IMG tag in HTML is for an image description, not an alternate image. I may be wrong, but I've been writing web pages for nearly 5 years and I've never heard of that implementation.
  #6  
Old 07-31-2001
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,434
My thoughts:


Someone earlier suggested using dynamic content generation. This would be the way to go, i.e. using PHP or JSP or GGI in a more DHTML environment.

If I was going to 'dive into this problem' I would also look at the HTML return codes and see if not having an IMG returns a
status code. There are many of these status codes. However,
I don't have much faith in this approach.

The action based on the status (return) codes could have file-level
granularity, but this would require a great deal of work for a large server and I would not advise it.

The dynamic HTML method using JSP, PHP, etc. would be my
first choice.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0