Issue with IE7/8 and CSS with AJAX

205 views
Skip to first unread message

Eric Leversen

unread,
Jun 21, 2012, 12:27:55 PM6/21/12
to refresh...@googlegroups.com
I've encountering an issue with IE7/8 where CSS does not seem to work in pages that are called via AJAX.
IE9 seems to work, as do Firefox, Safari, and Chrome.

Page with working CSS in IE8:
http://ftw-dev.org/temp/ie_rollover_test.html

Same page loaded via AJAX. Note that the CSS does not seem to be applied:
http://ftw-dev.org/temp/ie_ajax_rollover_test.html

Questions:
-Is there a known workaround for this?
-Is there a better way to have a label appear over a link on rollover and input text boxes on focus?

Thanks!

Eric Leversen
http://farmtowork.org/



Regards,

Eric Leversen
er...@webchronicconsulting.com




Patrick Fox

unread,
Jun 21, 2012, 5:56:23 PM6/21/12
to refresh...@googlegroups.com
Eric -

IE7/8 disregards <style> blocks in Ajax content.  A quick search on SO:

A better approach would be to load an external stylesheet in the initial page load.

Regards,
Patrick

--
Our Web site: http://www.RefreshAustin.org/

You received this message because you are subscribed to the Google Groups "Refresh Austin" group.

[ Posting ]
To post to this group, send email to Refresh...@googlegroups.com
Job-related postings should follow http://tr.im/refreshaustinjobspolicy
We do not accept job posts from recruiters.

[ Unsubscribe ]
To unsubscribe from this group, send email to Refresh-Austi...@googlegroups.com

[ More Info ]
For more options, visit this group at http://groups.google.com/group/Refresh-Austin



--
----------------------
Patrick J. Fox | Presentation Layer Architect Austin, TX

Eric Leversen

unread,
Jun 21, 2012, 6:15:43 PM6/21/12
to refresh...@googlegroups.com
Well of course IE 7/8 doesn't. What was I thinking????  ;->
With that info, I've got it working.

Thanks a million, Patrick.
Reply all
Reply to author
Forward
0 new messages