Hi
Am not sure why its misbehaving but try using an inline style style
definition like this
<div style="background-color:red;etc:etc">
hello world
</div>
The only issue is that it is obtrusive. Perhaps you could define that
style class in your external css before?
Hope that helps.
On May 24, 1:05 pm, Ecke <e...-/E1597aS9LT10XsdtD+oqA@public.gmane.org>
wrote:> I''m doing an Ajax request to return a block of html. Part of the
> returned html is a style tag containing styles to apply to the new
> html. The only trouble is in IE they don''t seem to be applied.
> Everything works great in firefox.
>
> Example returned html...
>
> <style>
> .test
> {
> background-color:red;
> border:1px solid green;
> width:100px;
> height:100px;
> }
> </style>
>
> <div class="test">
> hello world
> </div>
>
> In firefox I see the div applied correctly with all of the .test style
> applied, but in IE it isn''t applied. I''m assuming IE
doesn''t update
> stylesheets when you assign to the innerhtml of an element.
>
> Does anyone know a workaround for this..
>
> Cheers
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---