Hi,

I have this code:
_path.insert(getPathImage());


getPathImage looks like this:

ffunction getPathImage()
{
//      VERSION 1
//    return String.format("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img
alt='' src='{0}img/controls/path/pathcontrol-arrow.png' />  ",
getApplicationPath());
//
//      VERSION 2
//    return new Element('img', {
//        alt:'',
//        src:String.format('{0}img/controls/path/pathcontrol-
arrow.png', getApplicationPath())
//    }).setStyle({paddingLeft:'15px', paddingRight:'2px'});
//
//      VERSION 3
//    return new Element('img').writeAttribute('src',
getApplicationPath() + 'img/controls/path/pathcontrol-arrow.png');
//
//      VERSION 4
    return new Element('img');
}

VERSION 1 --> 4 work fine in FF and opera. In IE6 and IE7, only
VERSION 1 works.
Did I bump into a bug in prototype? I'm using version 1.6.0.2. It
looks that somehow IE fails in inserting an img object created using
'new Element(...)'

Did anyone experience similar problems? Am I doing something wrong?

Kind regards,
Manu.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to