Ok, I solved the problem with using !important on the rule. But after
some more looking at the technique it is probably better to use script
insertion anyway.



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