Bruce Schubert
|
Posted: November 17, 2009 20:01 by Bruce Schubert
|
|
Hi, I developed the following script for displaying recent topics on my project website. It's my first foray into JavaScript and AJAX. Project Kenai's John 'jb' Brock was instrumental in the script's evolution. Thanks jb! The script uses jQuery and JSON to perform asynchronous Kenai API calls to populate 'div' elements on my Emxsys project web page with forum topics and details, seen here: http://emxsys.kenai.com/news. The script makes recursive calls to load an array with all of a forum's topics. After the array is populated, its order is reversed to so as to output just the most recent topics. As each topic is output to html, a 'div' element is created and uniquely named to host the subject's details, which are retrieved later in a separate query. An important thing to remember is a JavaScript function will return before an embedded getJSON callback returns - this is the asynchronous nature of AJAX. -- Bruce
|
Kenai Forum Feed on Website
Replies: 3 - Last Post: December 17, 2009 02:32
by: Bruce Schubert
by: Bruce Schubert
« Older Topic
» Newer Topic
showing 1 - 4 of 4
Sergio Valdez
|
Posted: December 02, 2009 22:18 by Sergio Valdez
|
| Thanks, this is helpfull |
Peter Mount
|
Posted: December 10, 2009 09:29 by Peter Mount
|
|
I've made a few modifications to this script to make it a bit for useful. You can find the script at http://reteptools.kenai.com/blog/forumFeed.js The minor changes I made were:
You can see it in action on the reteptools homepage: http://reteptools.kenai.com/ where I have it showing the forums of all three of my projects on kenai. Peter |
Bruce Schubert
|
Posted: December 17, 2009 02:32 by Bruce Schubert
|
|
Hi Peter, Thanks for the improvements. Your reteptools homepage looks pretty cool. I see you've integrated it into your blogspot. Now that's very cool. -- Bruce Emxsys.com |
Replies: 3 - Last Post: December 17, 2009 02:32
by: Bruce Schubert
by: Bruce Schubert
« Older Topic
» Newer Topic








