Help With Javascript and HTML

Discussion in 'Computer Programming, Emulation, and Game Modding' started by Blake1710, Aug 30, 2009.

Aug 30, 2009
  1. Blake1710
    OP

    Member Blake1710 GBAtemp Regular

    Joined:
    Dec 24, 2008
    Messages:
    185
    Location:
    New South Wales, Australia
    Country:
    Australia
    Hey

    Doing javascript at school at the moment and i'm stuck at this exercise. Its supposed to validate a form, so if step 1 is incomplete an alert will tell you and the same for step 2. Only problem is it still pops up when step 1 is complete, and the popup for step 2 will not show. Help would be appreciated. I've already asked the teacher and he isn't sure either.

    Pastebin Link
     
  2. Cyan

    Global Moderator Cyan GBATemp's lurking knight

    Joined:
    Oct 27, 2002
    Messages:
    16,424
    Location:
    Engine room, learning
    Country:
    France
    There were many errors, I'll details each of them, tell what I've change, and submit a corrected version.

    [Line 66]
    if (validateText(pizzaForm) == true);
     
  3. Blake1710
    OP

    Member Blake1710 GBAtemp Regular

    Joined:
    Dec 24, 2008
    Messages:
    185
    Location:
    New South Wales, Australia
    Country:
    Australia
    thanks for your help.

    it works fine now. I'll show the teacher and ask what he thinks. some other people need help with it as well.

    thanks again.
     
  4. DanTheManMS

    Member DanTheManMS aka Ricochet Otter

    Joined:
    Jun 2, 2007
    Messages:
    4,325
    Location:
    Georgia
    Country:
    United States
    Good ol' "js-fifteen.html" file. Yeah, I made that exact same page about 3 years ago for my Web Design class. Fun stuff. Except not really.
     

Share This Page