I should specify that I have tested the css, it works. It could be a
caching problem but I've set my cache-control to no-cache and the
expires header comfortably in the past. So I'm wondering if there is
some problem with registering new styles when they are dynamically
loaded  after page load.

The current browser I'm testing on is Firefox.



On Feb 17, 7:38 am, pantagruel <rasmussen.br...@gmail.com> wrote:
> Hi,
>
> I want to do the following:
> function CheckCurrentDataStream(){
> window.setTimeout ("CheckCurrentDataStream()", 20000);
> $("#statuscss").replaceWith('<link rel="stylesheet" href="http://
> localhost:8080/statuschangealert.php" type="text/css" />');
>
> }
>
> The css I'm getting either is empty or it has a style in it changing
> the color of a certain link to let people know that there is waiting
> data for them to get.
>
> The thing is when I replace the stylesheet my new styles do not
> register. Is there a method to force the styles to be evaluated, or
> should I instead use script insertion instead of css insertion?

Reply via email to