ajax - how can I stop everything else loading, with Jquery? -


i'm having lot of trouble jquery , ajax in scripts.js file. i've been trying follow patterns in console frustratingly unpredictable. ajax that? (the code i'm working on stuff else did.)

how put in line of code says basically, 'stop, , don't else! no more loads of - until button clicked, or action called somewhere else'.

i think fix of problems.

i've put function below, , want stop. help.

function initialize_google_maps2() {       console.log('google maps 2 initialized');      var currentlatlng = new google.maps.latlng(map_latitude, map_longitude);     var zoom = 10;     var myoptions = {         zoom: zoom,         center: currentlatlng,         maptypeid: google.maps.maptypeid.roadmap, // roadmap, satellite, hybrid         streetviewcontrol: false     };     map = new google.maps.map(document.getelementbyid("map_canvas2"), myoptions);       var marker = new google.maps.marker({map: map, position: currentlatlng, icon:{oppacity:0}});    // map.setcenter(currentlatlng);      var circle = new google.maps.circle({         map: map,         fillopacity: 0,         strokeweight: 2,         strokeopacity: 0.7,         radius: 10000,     });      circle.bindto('center', marker, 'position');     console.log('end of initialize google 2 function')   // stop, , don't else! no more loads of - until button clicked, or action called //somewhere else   } 

you can use .ajaxstop() of jquery. hope answered question


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -