查看: 820|回复: 5
|
how to assign the value to the text box in the parent window?(aleady solved)
[复制链接]
|
|
i had a window(parent window) that show out few input text box, and allow the user click on edit button and pup out a new window.
in the new window the user able to choose whatever they want and process it.
the problemwas: after process the data that user had done it, i cant assign the value to the text box in the parent window.
pls help
[ 本帖最后由 cstan84 于 31-3-2006 07:23 PM 编辑 ] |
|
|
|
|
|
|
|
发表于 27-3-2006 09:27 AM
|
显示全部楼层
window.parent.opener.document.forms[0].txt.value = 'xxx' |
|
|
|
|
|
|
|
楼主 |
发表于 29-3-2006 09:15 PM
|
显示全部楼层
cant work wo....
any other solution by using javascript?
[ 本帖最后由 cstan84 于 29-3-2006 09:58 PM 编辑 ] |
|
|
|
|
|
|
|
发表于 30-3-2006 09:27 AM
|
显示全部楼层
不能?
window.parent.opener.document.all.txt.value = 'xxx' 呢?
应该没问题的 |
|
|
|
|
|
|
|
楼主 |
发表于 30-3-2006 12:08 PM
|
显示全部楼层
this for the javascript programming?
window.parent.opener.document.all.txt.value = 'xxx';
i change to this:
window.parent.opener.document.getElementById("textboxName").value = 'xxx';
it cant get any value wo...... |
|
|
|
|
|
|
|
楼主 |
发表于 31-3-2006 07:22 PM
|
显示全部楼层
我找到的解答:
opener.document.getElementById('textboxName').value; |
|
|
|
|
|
|
| |
本周最热论坛帖子
|