Portal Home > Knowledgebase > Articles Database > Ajax load causes IE6 conditional CSS to load...?


Ajax load causes IE6 conditional CSS to load...?




Posted by croakingtoad, 01-17-2009, 09:52 PM
A weird problem but apparently when my page returns a database query to the page it's causing the browser (FF, IE7, etc) to load the IE6 conditional stylesheet. Any idea why this would happen and how to fix it to keep it from happening?

Posted by lidnoone, 01-18-2009, 09:19 AM
how do you distinguish in your code between the different browsers?

Posted by croakingtoad, 01-18-2009, 02:33 PM
With conditional comments in the area, ie:

Posted by code_iain, 01-18-2009, 02:56 PM
Maybe a shot in the dark, but try moving the conditional includes to the body tag of the html you are using to update the page. I don't know the ins and outs of it but I think it has something to do with the way the info on the page is being inserted. so try: the rest of your body html.... its still compliant xhtml because comments are skipped by the html validator, but this way the conditions will be rendered when the new html is included in the page.

Posted by Dynash, 01-18-2009, 04:06 PM
They'll only work in the tag last I checked, my minds failed me. I forget the littlest things in HTML :p Why not use JavaScript instead?



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
bind not configured? (Views: 453)
CPU - xx%id (Views: 433)