The14thGOD
04-11-2007, 07:30 AM
Hey,
I'm not totally familiar with Javascript so I get confused with syntax.
I am trying to add a hidden field to a edit form, heres the code:
editbox += '<input type="hidden" name="type" value="' + type + '" />';
type is a variable that is predefined elsewhere, likewise with editbox, this worked b4 I added this line of code.
Firebug, says:
reference to undefined property "editbox"
editText("10")edit_comment.js (line 34)
onclick(click clientX=0, clientY=0)index.php (line 1)
[Break on this error] editbox += '<input type="hidden" name="type" value="' + type + '" />';
Any help would be much appreciated.
Thanks in advance,
The14thGOD
I'm not totally familiar with Javascript so I get confused with syntax.
I am trying to add a hidden field to a edit form, heres the code:
editbox += '<input type="hidden" name="type" value="' + type + '" />';
type is a variable that is predefined elsewhere, likewise with editbox, this worked b4 I added this line of code.
Firebug, says:
reference to undefined property "editbox"
editText("10")edit_comment.js (line 34)
onclick(click clientX=0, clientY=0)index.php (line 1)
[Break on this error] editbox += '<input type="hidden" name="type" value="' + type + '" />';
Any help would be much appreciated.
Thanks in advance,
The14thGOD