-
easy string question
hello,
i'm getting CRAZY on something that should be stupid. here it goes. this is the script:
function ConfirmRemove(a_id, s_id, n_id)
{
if (confirm("Are you sure to remove the article " + n_id + "? This operation CANNOT BE UNDONE.") )
{
parent.location='catmod_article_delete.asp?article_id=' + a_id + '&subcat_id=' + s_id;
parent.target='body';
}
}
i call it with a onSubmit="ConfirmRemove(1, 1, "name").
if instead of "name" i put a number everything works perfect, if i leave this "name" i get message errors all over the place... what am i doing wrong??
thank you in advance for your help!
cheers,
w.
-
try onSubmit="ConfirmRemove(1, 1, 'name')" instead of onSubmit="ConfirmRemove(1, 1, "name")".