English 中文(简体)
AJAX REquestST
原标题:AJAX REQUEST in request

I Load php第1页,随后是JAVA第2版的“Java功能呼吁一AJRP”要求,并张贴一些变数和运行功能。 第一次非洲-日本宇宙航空研究开发机构的请求仍然有效......

如今,第二个“加拿大宇宙航空研究开发机构”的功能是,另一个称为“日本宇宙航空研究开发机构”的“JAVA”号,它提出了另一个称为“美国宇宙航空研究开发机构”的“第三个”要求,它为“非洲宇宙航空研究开发机构”第2号请求提供了XML数据。 如何处理这一问题? AJAX究竟是哪一个叫作S.php,以及S.C.AJAX的第二个要求?

请帮助......。

根据你的榜样看待我的要求,因为我的守则太长了,不能按照打字格式在这里张贴和格式。

首先,I装载Ajax1.php直接装在浏览器中。

我现在请阿贾汉安再次解放联盟提出第一次请求。

$.ajax( /ajax2.php , function(data2){
// But the ajax2.php having Call another AJAX request for ajax3.php which retrive XML Data genereted from mysql and create Google MAP
    $.ajax( /ajax3.php , function(data3){
       // I need to display the ajax2.php Generated MAP to DIV created by ajax1.php
     // Whene I call ajax2.php directy from browser url it AJAX ajax3.php runs and gerete MAP perfectly
     // But I call ajax2.php through ajax1.php AJAX request it dosen t create the ajax3.php AJAX request 
    });
});

简言之,我只提出第一次非洲-日本宇宙航空研究开发机构的请求,但第一次非洲-日本宇宙航空研究开发机构请求再次提出第二次非洲-日本宇宙航空研究开发机构的请求。 它产生地中海行动计划。

document.getElementById("ntfs").innerHTML=xmlhttp.responseText;
// This above code is not working but I write like

document.write(xmlhttp.responseText);
//This above Code works perfect, but it create new document I can t fill to DIV.innerHTML

为什么?

问题回答

如果你贴出你自己的某些法典,那将非常容易帮助你。 我将使用jquery。

你们需要理解,麻风气是不合时代的。 国际民主和选举援助学会没有等到完成一项麻省呼吁,以便执行下一行的法典。 如果您在发言时要叫Ajax2,而如果是的话,则用Ajax2指Ajax3。 您的麻风技术的手稿。 ......

$.ajax( /ajax1.php , function(data1){
    $.ajax( /ajax2.php , function(data2){
        $.ajax( /ajax3.php , function(data3){
            //All 3 ajax calls are done, in order
        });
    });
});

alert( the first ajax call was made and is probably still executing );

If, for example, you want ajax1 and ajax2 to run at the same time, and have ajax2 call ajax3 when its done, it will look like this...

$.ajax( /ajax1.php , function(data1){
    //ajax1 call is done
});

$.ajax( /ajax2.php , function(data2){
    //ajax2 is done
    $.ajax( /ajax3.php , function(data3){
        //ajax2 and ajax3 calls are done, in order
    });
});

alert( the first 2 ajax call were made and are probably still executing );

Additional Reading: Asynchronous vs. Synchronous





相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签