Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(document).ready(function(){
- $.ajax({
- var location = encodeURIComponent( $("input#locations").val() );
- type: "GET",
- url: "<?php echo BASE_URL.DIR_REL."/packages/local_weather/blocks/local_weather/basicform.php?locations="?>"+location,
- dataType: "text",
- success: function(html){
- // $("#results").append(html);
- },
- error: function() {
- alert("An error has occured making the request");
- }
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement