Welcome to WebmasterWorld Guest from 54.234.244.30

Forum Moderators: open

Message Too Old, No Replies

CSS display when using AJAX (Unique to Safari)

     
5:00 pm on Mar 14, 2011 (gmt 0)

Full Member

5+ Year Member

joined:Mar 22, 2008
posts: 315
votes: 0


FILE #1: In a very full page of HTML, I have a few DIVs that are hidden by CSS. Various Javascripts cause the DIVs to appear and dissapear on specific events (click, mouseover, etc). Unfortunately, the data displayed on this page changes often.

"No problem," I said. I will just create:
FILE #2: An Ajax script, designed output File #1 every 30 seconds (to make sure the user always sees the latest data).

The Javascript and CSS work fine, when you are viewing File #1. But, when you are viewing File #2, the DIVs in question are always showing (ignoring any CSS and/or JavaScirpt).

This issue is unique to Safari. No issues in IE, FF, O, or Ch.

Does Safari handle something differently that might cause this?
10:26 pm on Mar 14, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


Because both Chrome and Safari use the same rendering engine, the problem is most likely that the Safari JavaScript engine accesses the DOM object differently.