This is a migrated thread and some comments may be shown as answers.

Possible css loading bug with ajax

2 Answers 37 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joel Sanderi
Top achievements
Rank 1
Joel Sanderi asked on 22 Jul 2008, 07:22 AM
Hello.

I have encountered a strange problem with conditional css loading when a page uses AJAX.

I have a conditional block in the "header"  that says that the css file testIE7.css should only be loaded by Internet Explorer 7.
 
Everything works fine when viewing the page in Firefox, until I try to make an AJAX call. The first AJAX call that occurs on the page will also load the testIE7.css file and affects the layout. I have verified that both css files are loaded using firebug and through the example provided here.

As a simple example look at the following files:
testIE7.css:
.button {
    color: Red;
}
test.css:
.button {
    color: Green;
}

When the hyperlink is pressed, the text will change color from the one specified in the test.css to the one specified in the testIE7.css file.

Thanks in advance,

 - Joel

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 22 Jul 2008, 07:36 AM
Hi Joel Sanderi,

This is a known issue. Please take a look at:

http://www.telerik.com/help/aspnet-ajax/ajxconditionalcomments.html

Greetings,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Joel Sanderi
Top achievements
Rank 1
answered on 22 Jul 2008, 09:19 AM
Great, thanks!
Tags
General Discussions
Asked by
Joel Sanderi
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Joel Sanderi
Top achievements
Rank 1
Share this question
or