Advertisement
Guest User

Untitled

a guest
May 28th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. <script type="text/javascript">
  2. $(document).ready(function(){
  3.  
  4. $.ajax({
  5.    var location = encodeURIComponent( $("input#locations").val() );
  6.    type: "GET",
  7.    url: "<?php echo BASE_URL.DIR_REL."/packages/local_weather/blocks/local_weather/basicform.php?locations="?>"+location,
  8.    dataType: "text",
  9.   success: function(html){
  10.     // $("#results").append(html);
  11.   },
  12.   error: function() {
  13.     alert("An error has occured making the request");
  14.   }
  15.  });
  16. });
  17.  
  18. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement