#1
  1. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,689
    Rep Power
    171

    Javascript error && and <> causes invalid html


    Hello how do I fix things like this:
    Code:
    Line 193, Column 31: character "&" is the first character of a delimiter but occurred as data
    
          if (parseInt(data) >= 0 && parseInt(data) <= 20)
    Here is the official error
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2012
    Posts
    194
    Rep Power
    77
    its because the html validator doesn't like the use of javascript unless its in an external .js file and this is the html forum not javascript forum
  4. #3
  5. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,689
    Rep Power
    171
    Originally Posted by jack13580
    its because the html validator doesn't like the use of javascript unless its in an external .js file and this is the css forum not javascript forum
    Thank you jack13580, so would be ok to remove the javascripts and enter them as external file? Thank you
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2012
    Posts
    194
    Rep Power
    77
    Originally Posted by zxcvbnm
    Thank you jack13580, so would be ok to remove the javascripts and enter them as external file? Thank you
    depending on how your script functions it shoul be fine

IMN logo majestic logo threadwatch logo seochat tools logo