I am having a problem with javascript, as a result of which I am doing the following to close the popup and update the field in the parent window with the desired value. The code looks something like this:
<script language="javascript" type="text/javascript">
var FieldID = document.form.field22-1.value;
self.parent.opener.document.+FieldID = 'some text';
window.top.window.close();
</script>
However, I get the following error:
Error: missing ; before statement
I find it funny that javascript interprets the field identifier (field22-1) as having a subtraction. Which, I think, would make sense. Any ideas / help would be ridiculously appreciated, really do not want to come back and change the code - in the code!
Thanks in advance!
source
share