Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 9 123 ... LastLast
Results 1 to 15 of 124
  1. #1
    Regular Coder
    Join Date
    Apr 2013
    Posts
    112
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Anyone help debug my code 100% correct but no alerts?

    hey guys heres the problem, first of all my javascript works but i recently added a bit of new javascript for my form which doesn't work, funny thing is if i delete the validation on top and use my validation which isn't working then it works .. I can't paste my javascript here as i dont want any students in my class to copy my code as it's plagiarism , cheers

  • #2
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,396
    Thanks
    12
    Thanked 569 Times in 562 Posts
    I can't paste my answer here as some student of your class could copy it

  • #3
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,918
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Quote Originally Posted by Johnny87auxsm View Post
    I can't paste my javascript here as i dont want any students in my class to copy my code as it's plagiarism , cheers
    Talk about the pot calling the kettle black!

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #4
    Regular Coder
    Join Date
    Apr 2013
    Posts
    112
    Thanks
    1
    Thanked 0 Times in 0 Posts
    lol oh man ! Send me ur email so i can forward you it ? I bet it's something so simple but i can't get my head around it, been looking through it for hours !!

  • #5
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,918
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Quote Originally Posted by Johnny87auxsm View Post
    lol oh man ! Send me ur email so i can forward you it ? I bet it's something so simple but i can't get my head around it, been looking through it for hours !!
    No way! People here do not offer a free private coding service.

    Have you tried using your error console (F12 key)?

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #6
    Regular Coder
    Join Date
    Apr 2013
    Posts
    112
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Absoulately mate, thing is it displays no errors but it doesn't work, if i copy the code into a empty javascript file it works but doesn't work with the rest of my java script? Completely puzzled..

  • #7
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,918
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Quote Originally Posted by Johnny87auxsm View Post
    Absoulately mate, thing is it displays no errors but it doesn't work, if i copy the code into a empty javascript file it works but doesn't work with the rest of my java script? Completely puzzled..
    Duplicate global variable or function names perhaps?

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #8
    Regular Coder
    Join Date
    Apr 2013
    Posts
    112
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Only have one function, then all if statements etc, then date function which is outside the main function after it's closed.. Mind if u can have a look? i can't do anything with assignment as i have more javascript to do lol

  • #9
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,918
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Quote Originally Posted by Johnny87auxsm View Post
    Only have one function, then all if statements etc, then date function which is outside the main function after it's closed.. Mind if u can have a look? i can't do anything with assignment as i have more javascript to do lol
    Post your code here - or solve the problem yourself. People helping out here do not offer a free private coding service

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #10
    Regular Coder
    Join Date
    Jan 2013
    Location
    Germany
    Posts
    578
    Thanks
    4
    Thanked 77 Times in 77 Posts
    I have discovered a truly marvelous solution for this, which this margin is too narrow to contain.

  • Users who have thanked Airblader for this post:

    Old Pedant (05-02-2013)

  • #11
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,189
    Thanks
    75
    Thanked 4,341 Times in 4,307 Posts
    Quote Originally Posted by Airblader View Post
    I have discovered a truly marvelous solution for this, which this margin is too narrow to contain.
    ROTFLMAO!

    I *truly* burst out laughing when I saw that!

    POINTS, man! Mega-points!
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #12
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,620
    Thanks
    0
    Thanked 645 Times in 635 Posts
    I too have a solution but it appears to be too small to copy and paste and I don't have the time to retype it.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #13
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,189
    Thanks
    75
    Thanked 4,341 Times in 4,307 Posts
    Sorry, Felgall. That doesn't garner the same points that Fermat does. <grin/>
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #14
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,620
    Thanks
    0
    Thanked 645 Times in 635 Posts
    Quote Originally Posted by Old Pedant View Post
    Sorry, Felgall. That doesn't garner the same points that Fermat does. <grin/>
    I didn't think that it would. There's no way that I could possibly compete with Fermat or even Wiles (whose proof was over 100 pages long which explains why Fermat's proof was too big to fit in the margin even if it was significantly shorter).
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #15
    Regular Coder
    Join Date
    Apr 2013
    Posts
    112
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Here you go it's attached with html,css, js.. It's the VALIDATION before the date function which is the last in the file so the one above the date..
    Attached Files Attached Files


  •  
    Page 1 of 9 123 ... LastLast

    Posting Permissions

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