I am trying to get the following line of code to work.
I've replaced single quotes with double, double with single, etc etc. The following code works fine, except it doesn't have the second argument for the AddRow function.
Is it possible to pass arguments with single quotes? The reason I need to pass the ('31Z','32Z','31R','32R') is because it will be used in a SQL WHERE clause;
WHERE BLAH in ('31Z','32Z','31R','32R')
Thanks for the help.
Code:
sSagList = "('31Z','32Z','31R','32R')"
document.write('<td class="list" style="padding-left:2px; font-weight:bold; border-right:0px solid #eeeeee"> <img style="cursor: default" onclick="AddRow(this,\'' + sSagList + '\');" alt="Insert Row" src="../graphics/returnarrow.gif" name="cmdInsert" id="cmdInsert">'+iRowCount+ ') ' + unescape(aNECRows[i].text) + '</td>');
I've replaced single quotes with double, double with single, etc etc. The following code works fine, except it doesn't have the second argument for the AddRow function.
Code:
document.write("<td class=list style='padding-left: 2px; font-weight: bold; border-right: 0px solid #eeeeee'><img style='cursor: default' onclick='AddRow(this);' alt='Insert Row' src='../graphics/returnarrow.gif' name='cmdInsert' id='cmdInsert'> " + iRowCount + ") " + unescape(aRows[i].text) + "</td>");
Is it possible to pass arguments with single quotes? The reason I need to pass the ('31Z','32Z','31R','32R') is because it will be used in a SQL WHERE clause;
WHERE BLAH in ('31Z','32Z','31R','32R')
Thanks for the help.