0

私は Sproutcore 1.9.1 に基づく Web アプリに取り組んでいます。サーバーからデータを取得するために、SC.Request.getUrl() リクエストを作成します。これは、IE8 を除くすべてのブラウザーで正常に機能します。リクエストが次のような場合のIE8の場合:

    SC.Request.getUrl("'http://example.com/some/path')
    .set('isJSON', YES)
    .async(false)        // made async false to work in IE
    .notify(this, 'someMethodDidComplete', {  query: query, store: store})
    .send();

works fine. But when the request is :

    SC.Request.getUrl("'http://example.com/some/path')
    .set('isJSON', YES)
    .notify(this, 'someMethodDidComplete', {  query: query, store: store})
    .send();

it works fine for other browsers but for IE8, it is not working. After spending some 
time with the issue i found out that the finishrequest() is not invoking. For doing so 
what I did is made 'asynchronous false' and then it works.  Now I don't know what to do. 
Please suggest me something on this and  why normal request is not working.
thanks in advance.
4

1 に答える 1

0

この問題は既知 ( https://github.com/sproutcore/sproutcore/issues/866 ) であり、少なくとも SC マスターでは修正されているようです。

補足として、.notify() のパラメーターとしてオブジェクトにクエリとストアを含めます。これを行う必要はありません。それらを追加のパラメーターとして含めるだけで、通知関数がそれらの追加のパラメーターで呼び出されます。

.notify(this,this.notifier,query,store)

およびファイル内の別の場所:

notifier: function(result,query,store){ }
于 2013-03-20T20:11:46.983 に答える