S
soup_or_power
I'm passing the return from window.open as a function argument and
getting the error "missing ] after element list" when tested with
FireFox. Here is the relevant code. Many thanks for your help.
function blurCkbox(num, disp, but_id, sugg)
{
if (num == 1) {
eval("self.opener.document.forms[0]." + but_id + ".value=\'" +
sugg + "\'");
}
function showSugg(but_id, sugg1, sugg2, sugg3, sugg4, sugg5) {
var
display=window.open('','_blank','menubar=0,location=no,status=no,directories=no,toolbar=no,scrollbars=yes,height=110,width=190')
var message="<font face='verdana, arial, helvetica, san-serif'
size='2'><form>";
message += sugg1 + "<input type=checkbox name=mycheck1
value=\'" + sugg1 + "\' onClick=\"blurCkbox('1'," + display + "," +
but_id + ",\'" + sugg1 + "\')\">";
}
getting the error "missing ] after element list" when tested with
FireFox. Here is the relevant code. Many thanks for your help.
function blurCkbox(num, disp, but_id, sugg)
{
if (num == 1) {
eval("self.opener.document.forms[0]." + but_id + ".value=\'" +
sugg + "\'");
}
function showSugg(but_id, sugg1, sugg2, sugg3, sugg4, sugg5) {
var
display=window.open('','_blank','menubar=0,location=no,status=no,directories=no,toolbar=no,scrollbars=yes,height=110,width=190')
var message="<font face='verdana, arial, helvetica, san-serif'
size='2'><form>";
message += sugg1 + "<input type=checkbox name=mycheck1
value=\'" + sugg1 + "\' onClick=\"blurCkbox('1'," + display + "," +
but_id + ",\'" + sugg1 + "\')\">";
}