SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot lord's Avatar
    Join Date
    Nov 2003
    Location
    sLOVEnia
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What is missing?

    Heya

    I use a JS for showing a date on my web page.
    It works ok with IE, but not in other browsers.

    Well if I use Firefox than I get error:
    document.all has no properties

    and this is line where is the problem:
    document.all.tad.innerHTML=(" " + wkd + ", " + days + "." + " " + mon + " " + year + " " + " " + hour + ":" + mins + " " + "h ");

    What kind of properties is missing here?

    Thanx in advance

  2. #2
    SitePoint Addict
    Join Date
    May 2000
    Posts
    313
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    document.all is IE specific that is why it won't work in other browsers. Here is a link to some scripts that can be used to display dates:
    http://www.javascriptkit.com/script/cutindex1.shtml

  3. #3
    SitePoint Zealot lord's Avatar
    Join Date
    Nov 2003
    Location
    sLOVEnia
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it's nice to know that

    thanx for your reply


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •