First download the Ext-basex script file from http://code.google.com/p/ext-basex/, after decompression, according to the instructions Readme file to refer to the EXT library and Ext-basex.
<link rel= "stylesheet" type= text/css "href=". /lib/ext-3.0+/resources/css/ext-all.css "/>
<script type= "Text/javascript" src= ". /lib/ext-3.0+/adapter/ext/ext-base.js "></script>
<script type= "Text/javascript" src= ". /lib/ext-3.0+/ext-all[-debug].js "></script>
<script type= "Text/javascript" src= ". /lib/ux/ext-basex[-debug].js "></script>
Then use the Ext.Ajax.request method to add Async:false,//async Asynchronous (TRUE asynchronous, False Sync), and other parameters unchanged.
Ext.Ajax.request ({
URL: "Streamingproxy.ashx",
Method: ' Get ',
Async:false,//async Asynchronous (TRUE asynchronous, False sync)
Params: {//Send the real page (service) URL parameter to the proxy page
U:url,
M: "Get",
T: ""
},
success:function (response, opts) {
},//Request a successful callback function
failure:function () {alert (' Get directory request failed. "); } //Request failed callback function
});