佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 820|回复: 5

how to assign the value to the text box in the parent window?(aleady solved)

[复制链接]
发表于 27-3-2006 12:31 AM | 显示全部楼层 |阅读模式
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 编辑 ]
回复

使用道具 举报


ADVERTISEMENT

发表于 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;
回复

使用道具 举报

Follow Us
您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 11-11-2024 05:18 PM , Processed in 0.127383 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表