Hello,
Here is the situation:
I have a page with a form named "form1". It has a textarea in it, named "comments".
<form name="form1" ...>
<textarea name="comments" ...>
...
</textarea>
...
</form>
Within the form I have a (javascript) link, that opens a new window named "smileys". Within this new window I have this function:
function insertSmiley(text) {
var space=" ";
parent.opener.form1.comments.value += space + text + space;
}
Basically what it does is inserts var text from this new (smileys) window to the "parent" window into form1 > textarea comments.
This works ok in IE, but not in Mozilla Firefox. I get this error:
parent.opener.form1 has no properties.
It points out to this line:
parent.opener.form1.comments.value += space + text + space;
NOW, is "parent.opener" only supported in IE? Any other way I can do this so it will also work in Mozilla?
Any help would be much appreachiated.
Thank you!
Here is the situation:
I have a page with a form named "form1". It has a textarea in it, named "comments".
<form name="form1" ...>
<textarea name="comments" ...>
...
</textarea>
...
</form>
Within the form I have a (javascript) link, that opens a new window named "smileys". Within this new window I have this function:
function insertSmiley(text) {
var space=" ";
parent.opener.form1.comments.value += space + text + space;
}
Basically what it does is inserts var text from this new (smileys) window to the "parent" window into form1 > textarea comments.
This works ok in IE, but not in Mozilla Firefox. I get this error:
parent.opener.form1 has no properties.
It points out to this line:
parent.opener.form1.comments.value += space + text + space;
NOW, is "parent.opener" only supported in IE? Any other way I can do this so it will also work in Mozilla?
Any help would be much appreachiated.
Thank you!