ajax 如何夸页面传值

来源:百度知道 编辑:UC知道 时间:2024/05/10 04:54:26
function doOpen(id){
myOffice.getMessageById(id,callback);
}
function callback(opt){
showModalDialog('content.jsp',window,'dialogwidth:480px;dialogheight:480px;help:0;center:yes;resizable:0;status:0;scroll:yes');
}
我要把callback回调函数里得到的opt传给模式窗口,然后在模式窗口的文本框里显示这个值,怎么传?
传过去乱码怎么办????????????

参考代码
send("/workflow/page/edit_draw.jsp?operate=do_check");

function createXMLHttpRequest(){
if(window.XMLHttpRequest){
XMLHttpReq=new XMLHttpRequest();
}else if(window.ActiveXObject){
try{
XMLHttpReq=new ActiveXObject("Msxml2.XMLHTTP");
}catch(e){
try{
XMLHttpReq=new ActiveXObject("Microsoft.XMLHTTP");
}catch(e){}
}
}
}
function proce(){
if(XMLHttpReq.readyState==4){
alert(XMLHttpReq.status);
if(XMLHttpReq.status==200){
var text = XMLHttpReq.responseText;
alert(text);
}else{
window.alert("所请求的页面有异常");
}
}
}
function send(url){
c