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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -