asynchronous false implies synchronous

git-svn-id: http://svn.openlayers.org/trunk/openlayers@6346 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2008-02-24 08:02:41 +00:00
parent fa42329b31
commit b06a8762a4

View File

@@ -22,6 +22,7 @@
var url = "ajax.txt";
function sendSynchronous(){
var request = new OpenLayers.Ajax.Request(url, {
'asynchronous': false,
onComplete: function() {
document.getElementById('send_sync').value += 'request completed\n';
}
@@ -30,7 +31,6 @@
}
function sendAsynchronous(){
var request = new OpenLayers.Ajax.Request(url, {
'asynchronous': false,
onComplete: function() {
document.getElementById('send_sync').value += 'request completed\n';
}
@@ -62,9 +62,9 @@
<p><b></b></p>
<p>Clicking on the different buttons should give the following results in the textarea below :</p>
<ul>
<li>"other processing" then "request completed"</li>
<li>"request completed" then "other processing"</li>
<li>"request aborted" then "other processing"</li>
<li>synchronous: "request completed" then "other processing"</li>
<li>asynchronous: "other processing" then "request completed"</li>
<li>abort: "request aborted" then "other processing"</li>
</ul>
</body>
</html>