All right, I've solved it myself. [Color= #FF0000]ajax.jsp[/color] There is no content just to enable Ajax to set up $ (document). Ready (function () {var path = $ ("#path"). Val (); $.ajax ({url:path + "/pr/ajax.jsp", DataType: "HTML", type: ' Get ', success:function (data) {$ ("#div"). HTML ("<div Class=\ "m-cnt cnt2\" id=\ "div1\" ></div>");/*-----1-------------------------------------------*/$.ajax ({url:path + "/pr/ Ajax.jsp ", DataType:" HTML ", type: ' Get ', success:function (data) {$ (" #div1 "). After (" <div class=\ "m-cnt cnt2\" id=\ " Div2\ "></ Div> "); /*-----2-------------------------------------------*/$.ajax ({url:path + "/pr/ajax.jsp", DataType: "HTML", type: ' Get ', success:function (data) {$ ("#div2"). After ("<div class=\" m-cnt cnt2\ "id=\" div3\ "></div>"); /*-----3-------------------------------------------*/$.ajax ({url:path + "/pr/ajax.jsp", DataType: "HTML", type: ' Get ', success:function (data) {$ ("#div3"). After ("<div class=\" m-cnt cnt2\ "id=\" div4\ "></div>"); /*-----4-------------------------------------------*//*$.ajax ({ur L:path + "/pr/ajax.jsp", DataType: "HTML", type: ' Get ', success:function (data) {$ ("#div4"). After ("<div class=\" m-cnt Cnt2\ "id=\" div4\ "></div> */*-----FOOT1----------------------------------------------*/ $.ajax ({URL: Path + "/pr/ajax.jsp", DataType: "HTML", type: ' Get ', success:function (data) {$ ("#foot1"). HTML ("</div>}); /*-----foot2----------------------------------------------*/}}); /*-----FOOT1----------------------------------------------*/*}}); */*-----4------------------------ -------------------*/ }}); /*-----3-------------------------------------------*/}});/*-----2-------------------------------------------*/}});/*-----1-------------------------------------------*/}});});
Site pictures are loaded in order to display