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

Style tags lost on POSTback

1 Answer 90 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 02 Apr 2009, 11:54 PM
I am using RadAjaxPanel, and inside it is a simple <style> tag with a few styles. Inside the RadAjaxPanel are HTML controls that uses these styles. It looks fine when the page first loads, but after a POSTback from one of the controls in the AJAX panel, the styles seem to be "lost".

A couple of things ... the <style> tags are not in the <head> ... they are just in an AJAX panel inside the <body> tag on a page.

Is this expected that any <style> tags will be dropped? Is there a way to make the browser still "see" these style tags after the AJAX POSTback?

Thanks!
Jay

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 03 Apr 2009, 08:40 AM
Hello Jay,

As you know, putting <style> tags in the <body> is not correct.

The reason for the problem is that Internet Explorer does not evaluate <style> elements (and <script> too, by the way) in the AJAX response. Please, place the styles somewhere else.

All the best,
Dimo
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Gary
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or