title: Sys.WebForms.PageRequestManager.getInstance() causing error with Google maps API
body: <p>I have problem with Sys.WebForms.PageRequestManager.getInstance().It is causing script error in my page.I have used Ajax in my page.I am facing postback issues in Google Maps.</p>
  
  <pre><code>      function CallInitialiseInPost() {
          initialize();
         }
  
     var prm = window.Sys.WebForms.PageRequestManager.getInstance();
     prm.add_endRequest(CallInitialiseInPost);
      function initialize() {
          var input = document.getElementById('streetTxt');
  
          var autocomplete = new google.maps.places.Autocomplete(input);
  
          google.maps.event.addListener(autocomplete, 'place_changed', function() {
              var place = autocomplete.getPlace();                
              if (place.address_components) {
                  for (var i = 0; i &lt; place.address_components.length; i++) {
                  var addr = place.address_components[i];
                      var getCity;
                      var getPostal;
                      var getStreet;
                      if (addr.types[0] == 'locality') {
                          getCity = addr.long_name;
                          document.getElementById('cityTxt').value = getCity;
                      }
                      if (addr.types[0] == 'postal_code') {
                          getPostal = addr.long_name;
                          document.getElementById('postalTxt').value = getPostal;
                      }
                  }
  
              }
  
          });
      }
      google.maps.event.addDomListener(window, 'load', initialize); 
  </code></pre>