Hi,
I just wanna ask how can I add a value on fck from
the popup window..
example is I have a fck and then I have a button and
when I clicked the button there is a popup and on the
pop up there are some text and when I clicked that the
value will be added on the fck...
thanks so much for looking for my problem
I just wanna ask how can I add a value on fck from
the popup window..
example is I have a fck and then I have a button and
when I clicked the button there is a popup and on the
pop up there are some text and when I clicked that the
value will be added on the fck...
thanks so much for looking for my problem
RE: how to add a value on fck from the pop up
<script language="javascript"
type="text/javascript">
function AddKeyword(Val, Keyword){
var Field =
opener.document.<?=$_GET['field']?>;
var sel;
//IE support
if(Field){
if (document.selection) {
Field.focus();
sel = opener.document.selection.createRange();
sel.text = Val;
Keyword.focus();
}
//MOZILLA/NETSCAPE support
else if (Field.selectionStart || Field.selectionStart ==
"0") {
var startPos = Field.selectionStart;
var endPos = Field.selectionEnd;
var chaineSql = Field.value;
Field.value = chaineSql.substring(0, startPos) + Val +
chaineSql.substring(endPos, chaineSql.length);
} else {
Field.value += Val;
}
}
}
</script>
I got the error "Can't move focus to the control
because it
is invisible, not enabled or of a type that does not accept
the focus ".
RE: how to add a value on fck from the pop up
RE: how to add a value on fck from the pop up
RE: how to add a value on fck from the pop up
Where can I look at that sample 8? Thanks for your help.
RE: how to add a value on fck from the pop up
Hi Alfonso Martinez,
Thanks for helping... Problem solved
Thanks again.
//thygag14