【发布时间】:2010-09-21 14:34:31
【问题描述】:
我有一个 Ajax 回调函数,它会加载一个 html 文件并在弹出窗口中弹出这个 HTMl 文件的内容。
到目前为止它可以工作,但是,我想摆脱弹出窗口中的位置栏。 这是我的代码
函数 _checkPopUpUpdate() { var回调=新对象(); callback.success=this.onExternalSuccess; callback.failure=this.onExternalFailure; YAHOO.util.Connect.asyncRequest('GET','/ci/ajaxCustom/ajaxCheckPopupUpdate',callback); };
函数onExternalSuccess (o){
if(o.responseText!==undefined) { var str=o.responseText; //document.getElementById('updateContent').innerHTML=str; if(str !== 'no update') // Then pop up. { L=screen.width-200; T=screen.height; **popup=window.open(str,"","alwaysRaised=yes,status=no,toolbar=no,location=no,menubar=no,directories=no,resizable=no,scrollbars=no,height=80,width=210,left="+L+",top="+T);** for (i=0;i<200;i++) { T=T-1; popup.moveTo(L,T); } } } };函数 onExternalFailure (o) { 警报(“失败”); };
所以,我的位置 = 0,我认为它应该是正确的。但我仍然在弹出窗口中看到位置栏。
【问题讨论】: