Trek
12-30-2009, 12:25 AM
I posted this on vb.com but realized I should probably be asking here.
Anyone know why I would be getting this error:
Parse error: syntax error, unexpected '[' in /home/XXXXXXXXXXXX/includes/adminfunctions_template.php(4597) : eval()'d code on line 72When I have this text in a template:
function removeElement (e) {
var li = e.parentNode;
li.parentNode.removeChild(li);
}
I've narrowed it down to just the one line causing this template not to save:
var li = e.parentNode;
If you create a new template and just put the above function in it and try to save, you'll see what I mean.
Thanks for your help!
Anyone know why I would be getting this error:
Parse error: syntax error, unexpected '[' in /home/XXXXXXXXXXXX/includes/adminfunctions_template.php(4597) : eval()'d code on line 72When I have this text in a template:
function removeElement (e) {
var li = e.parentNode;
li.parentNode.removeChild(li);
}
I've narrowed it down to just the one line causing this template not to save:
var li = e.parentNode;
If you create a new template and just put the above function in it and try to save, you'll see what I mean.
Thanks for your help!