title: jQuery Ajax URL encoding, Google maps
body: <p>I have a problem. jQuery.ajax method is encoding my URL and I need it "raw". How do I tell it not to encode URLs. I need this for Google maps. </p>
  
  <p>Here is encoded URL used by ajax method:</p>
  
  <p><a href="http://maps.googleapis.com/maps/api/geocode/jsonaddress=+gererger%C4%87%208,+%C4%8Ca%C4%8Dak,+SRB&amp;sensor=false" rel="nofollow">http://maps.googleapis.com/maps/api/geocode/jsonaddress=+gererger%C4%87%208,+%C4%8Ca%C4%8Dak,+SRB&amp;sensor=false</a></p>
  
  <p>and here is how I need it :</p>
  
  <p><a href="http://maps.googleapis.com/maps/api/geocode/json?address=+8" rel="nofollow">http://maps.googleapis.com/maps/api/geocode/json?address=+8</a>+gerergerć,+Čačak,+SRB&amp;sensor=false</p>
  
  <p>Here is my ajax call :</p>
  
  <pre><code>jQuery.ajax({
              url : mapUrl,
              type : 'GET',
              success : function (data, status) {
                  if (status === 'success') {
                      if ( typeof data.results[0] !== 'undefined' ) {
                        /* ... */
                      }
                  }
              },
              dataType : 'json'
          })
  </code></pre>
  
  <p>My PHP is echoing second URL but ajax is encoding it into first version</p>
  
  <p>Here is how I make mapUrl :</p>
  
  <pre><code>var mapUrl = 'http://maps.googleapis.com/maps/api/geocode/json?address=&lt;?= $salon-&gt;getGoogleMapAddress() ?&gt;&amp;sensor=false';
  </code></pre>