Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Alt Text Not Appearing in Firefox

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-05-2010, 12:48 AM
  JeanB's Avatar 
JeanB JeanB is offline
 

eXpert
  
Join Date: Oct 2009
Location: Worcestershire, UK
Posts: 217
 

Default Alt Text Not Appearing in Firefox

Hi All,
This could be a simple solution, but I can't for the life of me figure it out!

For each product, I have changed the "extra fields" module to display icons, rather than text.

This is in IE8, where the alt for the image appears. (I need the 'alt' as a quick-reference for what the icon means).

http://i16.photobucket.com/albums/b49/BeanJardo/Work/150iealt.jpg

However, in Firefox & Safari, it doesn't appear?

Firefox displays all other 'alt' text on the site, just not this one!?!


This is the image reference:

<img src="skin1/images/{$v.field_value}.png" width="40" height="40" alt="{$v.field_value}" />


Many thanks,

JeanB
__________________
4.2.3
X-Cart Gold
BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers
-------[installed]----------------------[installed]--------------[installed]----[installed]--



5: in development
Reply With Quote
  #2  
Old 03-05-2010, 03:20 AM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Alt Text Not Appearing in Firefox

It's not displaying alt text in firefox because firefox is compliant with standards. For it appearing sometimes there is very likely a reason but I am unable to have it done.

Quote:
The alt attribute specifies alternate text that is rendered when the image cannot be displayed (see below for information on how to specify alternate text ). User agents must render alternate text when they cannot support images, they cannot support a certain image type or when they are configured not to display images.

See here: http://www.w3.org/TR/html4/struct/objects.html

You should rather opt for javascript or css tooltips.
http://trentrichardson.com/examples/csstooltips/
__________________
- Shane Munroe
Reply With Quote
  #3  
Old 03-05-2010, 07:25 AM
 
Regs Regs is offline
 

Senior Member
  
Join Date: Apr 2003
Location: Vancouver BC
Posts: 134
 

Default Re: Alt Text Not Appearing in Firefox

Try using the title="" attribute in addition to the alt="" attribute.
__________________
x-cart 4.2.3 & 4.6.0
Reply With Quote
  #4  
Old 03-05-2010, 07:35 AM
  JeanB's Avatar 
JeanB JeanB is offline
 

eXpert
  
Join Date: Oct 2009
Location: Worcestershire, UK
Posts: 217
 

Default Re: Alt Text Not Appearing in Firefox

Tal - Quite an interesting point. I might look into the tool-tip idea. Thanks.

Regs - Many thanks for the "title" suggestion. Works like a charm!
__________________
4.2.3
X-Cart Gold
BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers
-------[installed]----------------------[installed]--------------[installed]----[installed]--



5: in development
Reply With Quote
  #5  
Old 03-05-2010, 12:53 PM
 
jdiehl jdiehl is offline
 

eXpert
  
Join Date: Dec 2003
Location: Kansas City, MO
Posts: 270
 

Default Re: Alt Text Not Appearing in Firefox

Alt text is not supposed to show, like you displayed. You were thinking it was broken in FireFox because it didn't display, where as in reality it was broken in Internet Exploder because it WAS displaying, LOL. That's what makes messing with IE so difficult sometimes

Tal showed the quote about how the Alt tag is supposed to work, and if you read further on the same link he provided it explains the Title tag:

Quote:
Values of the title attribute may be rendered by user agents in a variety of ways. For instance, visual browsers frequently display the title as a "tool tip" (a short message that appears when the pointing device pauses over an object). Audio user agents may speak the title information in a similar context. For example, setting the attribute on a link allows user agents (visual and non-visual) to tell users about the nature of the linked resource

Don't you love IE for making things confusing It's not really handy to have things work regardless, it's better to have it work based off of standards so that it's a standard for all, that is what "standards" mean after all.
__________________
Jason Diehl

Finding Cures for Your Online Headaches: http://www.internetmedicineman.com/
Reply With Quote
  #6  
Old 03-05-2010, 01:02 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,192
 

Default Re: Alt Text Not Appearing in Firefox

MS is too big to obey standards - they make their own standards
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #7  
Old 03-07-2010, 05:01 PM
 
Regs Regs is offline
 

Senior Member
  
Join Date: Apr 2003
Location: Vancouver BC
Posts: 134
 

Default Re: Alt Text Not Appearing in Firefox

The reality is that everyone should be using alt AND title attributes on their images that have meaning.
__________________
x-cart 4.2.3 & 4.6.0
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020