var date_val = new Date(entry.publishedDate);
moment.lang('ru');
});
You're overwriting the container.innerHTML with every news entry. Use += instead of = .And if that doesn't fix the problem, please post a link to the page, working or not, so we can see the code in action. It's generally much easier to debug things that way than by reading plain code, particularly when formatting isn't preserved.
jg
----
--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax...@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-searc...@googlegroups.com
To view this message on the web, visit
https://groups.google.com/d/msgid/google-ajax-search-api/68b60f5a-3a1b-4ba9-b582-595c792fec56%40googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-ajax-searc...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Rev. Jeremy R. Geerdes, PastorDebra Heights Wesleyan Church4025 Lower Beaver RdDes Moines, IA 50310
To view this message on the web, visit
https://groups.google.com/d/msgid/google-ajax-search-api/68b60f5a-3a1b-4ba9-b582-595c792fec56%40googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-ajax-search-api+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Rev. Jeremy R. Geerdes, PastorDebra Heights Wesleyan Church4025 Lower Beaver RdDes Moines, IA 50310
Okay, so the main problem is an issue of scope in the for loop that you're using. To fix that, you need to use what's called a method closure. But there are several other problems as well (e.g., you have multiple elements with the id ao_news_item). So I went ahead and rewrote the code so that it works. To use the code, you'll need to replace your ao_load_feed.js with the one attached. Because I changed the elements from div#ao_news_item to div.ao_news_item you'll also need to go into web-main.css and change line 170 to read as follows:.ao_news_item{Hope that helps.
To view this message on the web, visit
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-ajax-searc...@googlegroups.com.
--
Rev. Jeremy R. Geerdes, PastorDebra Heights Wesleyan Church4025 Lower Beaver RdDes Moines, IA 50310
To view this message on the web, visit
https://groups.google.com/d/msgid/google-ajax-search-api/68b60f5a-3a1b-4ba9-b582-595c792fec56%40googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-ajax-search-api+unsubscri...@googlegroups.com.
--
Rev. Jeremy R. Geerdes, PastorDebra Heights Wesleyan Church4025 Lower Beaver RdDes Moines, IA 50310
--
Jeremy R. GeerdesGenerally Cool GuyDes Moines, IAIf you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!
--
--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax...@googlegroups.com
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-ajax-search-api+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Rev. Jeremy R. Geerdes, PastorDebra Heights Wesleyan Church4025 Lower Beaver RdDes Moines, IA 50310