Javascript Clock - help needed

[b][red]This message was edited by jeannot18 at 2005-11-6 18:46:53[/red][/b][hr]
Could someone tell me why this script is not working. I have been trying to find what is wrong but I can't find it. Many thanks.
JC (Newbie professional)
----------------------------------------------------------------------


Current Time











onLoad = "clock()"









----------------------------------------------------------------------


Comments

  • : [b][red]This message was edited by jeannot18 at 2005-11-6 18:46:53[/red][/b][hr]
    : Could someone tell me why this script is not working. I have been trying to find what is wrong but I can't find it. Many thanks.
    : JC (Newbie professional)
    : ----------------------------------------------------------------------
    :
    :
    : Current Time
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    : onLoad = "clock()"
    :
    :
    :
    :

    :
    :
    :
    :
    :
    : ----------------------------------------------------------------------
    :
    :
    :
    First of all; You have two body tags....
    second; the onload should be inside the bodytag, not behind it...



    Current Time



















    and then it works fine...
    good luck...
    ;-)
    -mac-
    mailto:[email protected]
    the Netherlands...


  • Doggie you are a top man. This is what gets me frustated with Javascript (and other programming language I guessed), if you make a mistake it just does not work. What can I use to "debug" my script in Javascript? I am using note pad right now but is there a dedicated Javascript kind of writer that I could use to help me? Thanks again and see you probably very soon
    JC
    : :
    : First of all; You have two body tags....
    : second; the onload should be inside the bodytag, not behind it...
    :
    :
    :
    : Current Time
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :

    :
    :
    :
    :
    :
    :
    : and then it works fine...
    : good luck...
    : ;-)
    : -mac-
    : mailto:[email protected]
    : the Netherlands...
    :
    :
    :

  • : Doggie you are a top man. This is what gets me frustated with Javascript (and other programming language I guessed), if you make a mistake it just does not work. What can I use to "debug" my script in Javascript? I am using note pad right now but is there a dedicated Javascript kind of writer that I could use to help me? Thanks again and see you probably very soon
    : JC
    : : :
    : : First of all; You have two body tags....
    : : second; the onload should be inside the bodytag, not behind it...
    : :
    : :
    : :
    : : Current Time
    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : :

    : :
    : :
    : :
    : :
    : :
    : :
    : : and then it works fine...
    : : good luck...
    : : ;-)
    : : -mac-
    : : mailto:[email protected]
    : : the Netherlands...
    : :
    : :
    : :
    :
    :


    I usualy edit my JavaScript/HTML and PHP in PSPAD or Textpad (both free to use) Not really debugging tools, but it colors your code and it are just nice editors...

    For debugging JavaScript I usualy try the scripts in Mozilla Firefox, It gives better errormessages, and there are a lot of plugins that make a programmerslife much more pleasant.

    And If you get errors try putting some alerts between your code so you can easily see where it goes wrong...

    ;-)
    -mac-
    mailto:[email protected]
    the Netherlands...


  • : [b][red]This message was edited by jeannot18 at 2005-11-6 18:46:53[/red][/b][hr]
    : Could someone tell me why this script is not working. I have been trying to find what is wrong but I can't find it. Many thanks.
    : JC (Newbie professional)
    : ----------------------------------------------------------------------
    :
    :
    : Current Time
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    : onLoad = "clock()"
    :
    :
    :
    :

    :
    :
    :
    :
    :
    : ----------------------------------------------------------------------
    :
    :
    : In this your onLoad() is on the outside of your body tag. Besides that you are perfectly all right. Change your body tag to



  • Thanks, got it corrected now.
    JC

    : : [b][red]This message was edited by jeannot18 at 2005-11-6 18:46:53[/red][/b][hr]
    : : Could someone tell me why this script is not working. I have been trying to find what is wrong but I can't find it. Many thanks.
    : : JC (Newbie professional)
    : : ----------------------------------------------------------------------
    : :
    : :
    : : Current Time
    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : : onLoad = "clock()"
    : :
    : :
    : :
    : :

    : :
    : :
    : :
    : :
    : :
    : : ----------------------------------------------------------------------
    : :
    : :
    : : In this your onLoad() is on the outside of your body tag. Besides that you are perfectly all right. Change your body tag to
    :
    :
    :
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories