Можно ли сделать загрузку поста на главной странице в блоге? Если я увешаю страничку сайдбарами и графиками, то перегружать ее - дело хлопотное, а вот подгружать свои же посты... Можно, конечно, взять AJAX searh API, но это - чесать левое ухо... ногой.
Вот страничка от Гугла, а ниже - ссылка на скрипт
With the AJAX Feed API, you can download any public Atom or RSS feed using only JavaScript, so you can easily mash up feeds with your content and other APIs like the Google Maps API. For Flash, and other Non-Javascript environments, the API exposes a raw RESTful interfaceNew! that returns JSON encoded results that are easily processed by most languages and runtimes.
Вот этот парень, вроде бы, сотворил то, что нужно:
...'ve been experimenting with Google Ajax Feed to pull an RSS feed from
a blog to put on the frontpage of the website (thanks to
Krishbhavara's recommendation). See How do I get it to display one
feed instead of multiple feeds?
http://sarahlederman.com/test/index.html is the front page,
http://sarahlederman.com/test/news.html is the blog. From
http://code.google.com/apis/ajaxfeeds/documentation/reference.html#Feed,
I understand that I need to add in the method "setNumEntries(num)",
but I have no idea where and with what syntax. Any help would be much
appreciated!
Ну, почитал..., оказывается, API тот же, что и для поиска, просто вместо find используем feed... Всего и делов-то. Однако в примерах нет видео (медиа фидов), может быть, просто старый материал?
Вот страничка от Гугла, а ниже - ссылка на скрипт
With the AJAX Feed API, you can download any public Atom or RSS feed using only JavaScript, so you can easily mash up feeds with your content and other APIs like the Google Maps API. For Flash, and other Non-Javascript environments, the API exposes a raw RESTful interfaceNew! that returns JSON encoded results that are easily processed by most languages and runtimes.
Вот этот парень, вроде бы, сотворил то, что нужно:
...'ve been experimenting with Google Ajax Feed to pull an RSS feed from
a blog to put on the frontpage of the website (thanks to
Krishbhavara's recommendation). See How do I get it to display one
feed instead of multiple feeds?
http://sarahlederman.com/test/index.html is the front page,
http://sarahlederman.com/test/news.html is the blog. From
http://code.google.com/apis/ajaxfeeds/documentation/reference.html#Feed,
I understand that I need to add in the method "setNumEntries(num)",
but I have no idea where and with what syntax. Any help would be much
appreciated!
Ну, почитал..., оказывается, API тот же, что и для поиска, просто вместо find используем feed... Всего и делов-то. Однако в примерах нет видео (медиа фидов), может быть, просто старый материал?
0 коммент.:
Отправить комментарий