Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script type="text/javascript" src="jquery.min.js"></script>
- <style>
- body {
- height: 120px;
- width: 130px;
- background-color: white;
- };
- </style>
- </head>
- <body>
- Question Viewed:
- <div id="data"></div>
- <script type="text/javascript">
- var url = "http://stackoverflow.com/questions/1936495/website-scraping-using-jquery-and-ajax"
- updateGadget();
- inervalID = setInterval("updateGadget();", 60 * 1000);
- function updateGadget(){
- $(document).ready(function(){
- $("#data").load(url + " .label-value:contains('times')");
- });
- }
- </script>
- </body>
- </html>
- $(document).ready(function() {
- baseUrl = "http://www.somedomain.com/";
- $.ajax({
- url: baseUrl,
- type: "get",
- dataType: "",
- success: function(data) {
- //do something with data
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement