• Simple JScript Driving Me Mad!

    Author
    Topic
    #356189

    I want you to write one hundred times: “J(ava)script is CaSe SeNsItIvE.” Seriously, we’ve all done it. Your href is trying to call a “staff” function, when you have a “Staff” function. To be consistent with (almost) everything else, I suggest you get into the habit of naming first word lower case, and capitalize every other word.

    Stan Scott
    New York City

    Viewing 1 reply thread
    Author
    Replies
    • #526744

      I don’t believe it! My excuse is that I’m used to VBA and VBScript!!!

      Ok, here we go..

      J(ava)script is CaSe SeNsItIvE
      J(ava)script is CaSe SeNsItIvE
      J(ava)script is CaSe SeNsItIvE
      J(ava)script is CaSe SeNsItIvE
      J(ava)script is CaSe SeNsItIvE
      J(ava)script is CaSe SeNsItIvE
      J(ava)script is CaSe SeNsItIvE

      Thanks,

      Ade

    • #526669

      Can somebody please tell me why this really simple (!) Jscript function doesn’t work in a web page?

      It returns the error “Object not defined”. All I want to do is pass “Joe” from the hyperlink into the code and display Joe in the alert dialog.

      Thanks in advance,

      Ade
      ************
      function Staff(text)
      {
      alert(text + ‘is your name!’);
      }

      Start

    Viewing 1 reply thread
    Reply To: Simple JScript Driving Me Mad!

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: