#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    London
    Posts
    9
    Rep Power
    0

    Javascript Syntax Query


    Hello everyone,

    The following line of code works fine:

    eval("document.getElementById('chingandaNoScript_" + i + "').style.display = \"none\";");


    but this next line doesn't work:

    eval("document.getElementById('chingandaNoScript_" + i +"').item(nowNext).insertAdjacentHTML(beforeEnd,"dummyChange");");

    error message says "char 106" i think - any ideas about the syntax

    cheers
  2. #2
  3. No Profile Picture
    Seņor Member
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2000
    Posts
    1,157
    Rep Power
    37
    Try putting single quotes (instead of double-quotes) around dummyChange.
    Michael

IMN logo majestic logo threadwatch logo seochat tools logo