Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    May 2001
    Location
    New York City, NY
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Simlpe JScript Driving Me Mad!

    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

  2. #2
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Edinburgh, Midlothian, Scotland
    Posts
    144
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Simlpe JScript Driving Me Mad!

    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

  3. #3
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Edinburgh, Midlothian, Scotland
    Posts
    144
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Simple JScript Driving Me Mad!

    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

Posting Permissions

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