On Jun 2, 1:37 pm, IMBI-Indie-Portal <[email protected]> wrote:
> Thanks Colin, but, there is a space, if you check the source code
> page, It didn't fit to well into the post.
> As you can see, it works as a HTMLDOM style, almost the same code..
> border: this.olc_divborder+'px' +this.olc_bordercol+ 'solid'
> there is one space on each side.
>
There is not. There is a space *outside* the quotes, but not one that
will go into the string which you are generating. This will pass an
object like

{ border: '222pxblacksolid' }

> The way I read it from the DOCS is that if it works as a HTMLDOM
> shorthand method, it should work in setStyle(); ???

Yes. But the shorthand property  has a different name from the
individual property. You appeared to be trying to say
{ backgroundImage: 'url(xxx) top left' }
instead of
{ background: 'url(xxx) top left' }
or
{ backgroundImage: 'url(xxx)',
  backgroundPosition: 'top left' }

I don't know about the appendChild problem.
http://www.phpied.com/dynamic-script-and-style-elements-in-ie/ gives a
solution, but I think you know this and are asking about whether
Prototype helps with it or not, and I don't know the answer.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to