Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Browser Incompatibility

Status
Not open for further replies.

MinalMaurice

Programmer
Apr 20, 2005
14
GB
I'm using a SQL 2000 database. One of my tables contains 2 fields, the first - URL - contains a full URL reference, such as The second - Logo_Name - contains the name of a logo image to be found in the Logos directory.

I use the code <a href="#URL#" target="_blank"><img src=" alt="#Alt#" border="0"></a> to pull up the links.

It sometimes works under Internet Explorer and Deepnet, but not under Mozilla Firefox or Opera etc.

The reason being that when examined under View Source - the image doesn't appear. What can I do to the image source code to make sure that the image appears.
 
if #logo_name# does not appear then the field in the database is most likely empty. also are you including the file extension in the logo_name field?

Beware of programmers who carry screwdrivers.
 
1. The database field is not empty

2. the full name + file extension is included.

3. It always worked under Internet Explorer when the databse was Microsoft Access.
 
You should also make sure you are using urlencode for those people who still put spaces in file names.

<img src="/location/#urlencodedformat(daimage)#" bla bla bla>
 
All filenames have no spaces - it's not the URL that has the problem - it's the image source connected to the URL.
 
try the fully qualified variable name

queryName.logo_name

if it isn't showing in the view source you don't have to worry about a browser incompatability issue. the source is created on the server before the browser even dreams of seeing it. The problem exists on the server, not the browser.

Beware of programmers who carry screwdrivers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top