Ajax回调弹出窗口

Ajax回调弹出窗口,ajax,popup,call,back,Ajax,Popup,Call,Back,我有一个Ajax回调函数,它将加载一个html文件,并在弹出窗口中弹出该html文件的内容 到目前为止它还可以工作,但是,我想去掉弹出窗口中的位置栏。 这是我的密码 函数_checkPopUpUpdate(){ var callback=新对象(); callback.success=this.onExternalSuccess; callback.failure=this.onExternalFailure; YAHOO.util.Connect.asyncRequest('GET','/ci

我有一个Ajax回调函数,它将加载一个html文件,并在弹出窗口中弹出该html文件的内容

到目前为止它还可以工作,但是,我想去掉弹出窗口中的位置栏。 这是我的密码

函数_checkPopUpUpdate(){ var callback=新对象(); callback.success=this.onExternalSuccess; callback.failure=this.onExternalFailure; YAHOO.util.Connect.asyncRequest('GET','/ci/ajaxCustom/ajaxCheckPopupUpdate',回调); };

函数OneExternalSuccess(o){

if(o.responseText!==未定义)
{
var str=o.responseText;
//document.getElementById('updateContent')。innerHTML=str;
如果(str!=“无更新”)//则弹出。
{
L=屏幕宽度-200;
T=屏幕高度;
**弹出=窗口。打开(str,“,”alwaysRaised=yes,status=no,toolbar=no,location=no,menubar=no,directories=no,resizeable=no,scrollbars=no,height=80,width=210,left=“+L+”,top=“+T)**

对于(i=0;i某些浏览器不允许您删除它。某些浏览器具有禁用删除它的设置。没有可靠的方法删除位置栏。您可以在此处测试各种浏览器:

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);
      }
    }
} };