OpenLayers OpenLayers

Changeset 6346

Show
Ignore:
Timestamp:
02/24/08 03:02:41 (11 months ago)
Author:
tschaub
Message:

asynchronous false implies synchronous

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/tests/manual/ajax.html

    r6131 r6346  
    2323        function sendSynchronous(){ 
    2424            var request = new OpenLayers.Ajax.Request(url, { 
     25               'asynchronous': false, 
    2526                onComplete: function() { 
    2627                    document.getElementById('send_sync').value += 'request completed\n'; 
     
    3132        function sendAsynchronous(){ 
    3233            var request = new OpenLayers.Ajax.Request(url, { 
    33                'asynchronous': false, 
    3434                onComplete: function() { 
    3535                    document.getElementById('send_sync').value += 'request completed\n'; 
     
    6363    <p>Clicking on the different buttons should give the following results in the textarea below :</p> 
    6464    <ul> 
    65       <li>"other processing" then "request completed"</li> 
    66       <li>"request completed" then "other processing"</li> 
    67       <li>"request aborted" then "other processing"</li> 
     65      <li>synchronous: "request completed" then "other processing"</li> 
     66      <li>asynchronous: "other processing" then "request completed"</li> 
     67      <li>abort: "request aborted" then "other processing"</li> 
    6868    </ul> 
    6969  </body>