English 中文(简体)
2. 发出“青年倡议”呼吁,但不是同仁
原标题:Make a YUI asyncRequest call which is not async

我想发出一个YAHOO.util.Connect.asyncRequest呼吁,这不是同仁。 见open(method, url, async),其中伪造者为同仁通过。

我在连接班中找不到“同质”。 是否可能使用YUI 2?

相反,我是在没有YUI的情况下审判的。

function createRequestObject() {
    var ro;
    // Mozilla, Safari,...
    if (window.XMLHttpRequest) {
        ro = new XMLHttpRequest();
        if (ro.overrideMimeType) {
            ro.overrideMimeType( text/xml );
            // See note below about this line
        }
        // IE
    } else if (window.ActiveXObject) {
        try {
            ro = new ActiveXObject("Msxml2.XMLHTTP");
        } catch (e) {
            try {
                ro = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {}
        }
    }
    if (!ro) {
        alert( Giving up :( Cannot create an XMLHTTP instance );
        return false;
    }
    return ro;
}
function sndReq(param,server,handler) {
    http = createRequestObject();
    http.open( GET , server+"?"+param, false);
    http.setRequestHeader( Content-Type , application/x-www-form-urlencoded );
    http.onreadystatechange = handler;
    http.send(null);
}

但是,在FireFox和Safari,当假在公开场合通过时,不会要求进行渗透性改变? 在IE, 并操作它。

最佳回答

利用JQuery. j Query.ajax({async:false})在IE和FF中开展工作。

问题回答

YUI3支持“YUI io”中的同步要求,可在Gite Hub的发展方面掌握。 执行摘要列入README文件,并将在3.1.0中正式记录。 这一改进文件记录在关于黄色图书馆的2528181处。

如果你能够使用第3号德国马克,可以让奥人尝试。

YUI2不支持同步的请求。 据国际不动产业联合会的一位发展中国家称,它最终将成为国际不动产业联合会3的一部分。 由于用户经验的破坏,他们忙于支持它。

我个人永远不会提出同仁的要求。 宇宙航空研究开发机构是作为联合要求提出的。 如果要求延长,情报和安全部将冻结。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签