|
Cancel other request -- murat --
Hi, I get Order table from SQL Server by AjaxPro on first windows. Users click a button named "Search Order" to start this process. When come result of query, I prepare dynamic table to show Order row. MyNameSpace.Secure.OrderSearch.PrepareSearchQuery(objParams, PrepareSearchQuery_Callback); function PrepareSearchQuery_Callback(ResultValue){ myTable = document.createElement('TABLE'); ...... ..... for(var r=0; r<ResultValue.Rows.length; r++) { myTR = myTable.insertRow(myTable.rows.length); myTD = myTR.insertCell(myTR.cells.length); myLNK = document.createElement("a"); myLNK.href = "OrderDetail.aspx?OId="+objDT.Rows ; myLNK.target="_blank"; } } To display Order Detail, User click link named myLNK. It is opening new window. On second window is loading long time. If user close this window(second window) and back to fist window and again click "Search Order" button, this time AjaxPro dont run. dont send request to server. thereupon, I open SQL Profiler and I see that the second query is running. Shortly, because of second query, my first request dont run. The first query wait for second query. But I close second windows already, But I cant cancel second query, How do I cancel all request before any send request to server. I hope, I can explain my question. thanx |
|
-- murat --
Hi Michael, I think, you can help me :) |