Hi! I'm working with an RSS feed where the content for each entry
contains a table. The rows of each table are identified by class
names. So <tr class="eventName"> contains the name of the event for
that entry. When I use Google Feed API to load these entries,
however, these class names are stripped out.
So viewing the RSS feed in Firefox displays:
<table>
<tbody>
<tr class="eventName">Event Name</tr>
<tr class="when">Some Date</tr>
<tr class="where">Some Address</tr>
</tbody>
</table>
The HTML returned from entry.content, however is:
<table>
<tbody>
<tr>Event Name</tr>
<tr>Some Date</tr>
<tr>Some Address</tr>
</tbody>
</table>
This makes it extremely hard to parse and stylize the resulting data.
Is this behavior by design? Any way to fix this? Any help would be
much appreciated, thanks!
Here is the JavaScript code I'm using:
google.load("feeds", "1");
function initialize()
{
var feed = new google.feeds.Feed("--my-feed-goes-here--");
feed.load(function(result)
{
if (!result.error)
{
for (var i = 0; i < result.feed.entries.length; i++) {
var entry = result.feed.entries[i];
$("#dj").append(entry.content);
}
}
});
}
google.setOnLoadCallback(initialize);
--
You received this message because you are subscribed to the Google Groups
"Google AJAX APIs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en.