First download the ext-basex script file from http://code.google.com/p/ext-basex/. decompress the file and follow the instructions to reference the ext library and ext-basex.
<Head>
<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>
</Head>
Use the Ext. Ajax. Request Method to add async: false, // whether async is asynchronous (true asynchronous, false synchronous), and other parameters remain unchanged.
Ext. Ajax. Request ({
URL: "streamingproxy. ashx ",
Method: "Get ",
Async: false, // whether async is asynchronous (true asynchronous, false synchronous)
Params: {// pass the real page (service) URL parameter to the proxy page
U: URL,
M: "Get ",
T :""
},
Success: function (response, opts ){
}, // Callback function for successful requests
Failure: function () {alert ("failed to retrieve directory request! ");} // Callback function for request failure
});