rss - Google Feed API JSON output not showing latest records -


i trying load feed using google feed api, unable latest records. have tried below:

<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>   <script type="text/javascript">       $(function () {           url = 'http://www.propertyguru.com.sg/news-rss/sg-pm';           var randomnum = math.floor((math.random() * 10000) + 1);           $.ajax({               type: "get",               url: document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=20&callback=?&q=' + encodeuricomponent(url) + '&nocache=' + (new date).gettime() + randomnum,               datatype: 'json',               historical: false,               error: function () {                   alert("unable load feed, incorrect path or invalid feed");               },               success: function (data) {                   alert(json.stringify(data, null, "\t"));               }           });       });   </script> 

you incorrectly encoding q url query parameter, , there problem callback parameter. try url instead:

https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=1000&q=http://www.propertyguru.com.sg/news-rss/sg-pm 

Comments

Popular posts from this blog

tcpdump - How to check if server received packet (acknowledged) -