Link to home
Start Free TrialLog in
Avatar of ssebring
ssebring

asked on

jQuery code for reading date from file - only working in Safari

Hi,

I am working on a web page that displays a date that is read in from a text file.

Found this simple piece of jQuery code which is working in Safari only:

      <script language=javascript type='text/javascript'>
          //process date file
          jQuery.get('date.txt', function(data) {
          $('#refreshdate').html(data);
          });
        </script>

        <a id="refreshdatelabel" title="RefreshDateLabel" >Reports last refresh date: </a>
        <a id="refreshdate" title="RefreshedDate" >Sept 15, 2011</a>

Safari displays the file's Sept 19, 2011 date.

IE & Chrome both display the defaulted anchor date (Sept 15, 2011) & Firefox doesn't display anything at all for refreshdate (does display refreshdatelabel).

Suggestions are welcomed!
ASKER CERTIFIED SOLUTION
Avatar of ssebring
ssebring

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial