J
Joseph
Hello everyone,
I'm trying to build a page that utilizes google calendar data to build
dynamic content, but for some reason i cannot get Firefox to display
information via the innerHTML property. I know for sure that the data
is coming through and it is being formatted using my coding, but for
some reason when it goes to apply the informaiton to the innerHTML
property of the div tag it doesn't get applied.
Strangely enough, it works fine for IE. I read up on the net that
Firefox supports the innerHTML property, so i'm completely confused.
Can someone please help me out?
here is a copy of the coding
<code>
var startItem = "<div id='rss_item'>";
var startTitle = "<h2 id='rss_title'>";
var startImage = "<img id='rss_image' src=\"";
var startDescription = "<p id='rss_description'>";
var startLink = "<a target='_blank' class='rss_link' href='";
var endImage = "\" onError=\"erroredImage(this)\">";
var endTitle = "</h2>";
var endDescription = "</p>";
var endLink = "'>View More Details</a>";
var endTag = "</div>";
var item_html = "";
if (RSS.items.length<=0)
rssDiv.innerHTML = noItemsMessage
else
{
for (var i=0; i<RSS.items.length; i++)
{
if (RSS.items.title!=null)
{
item_html = startItem; //begin item listing
item_html += (RSS.items.title == null) ? "" : startTitle +
RSS.items.title + endTitle;
item_html += (RSS.items.image == null) ? "" : startImage +
RSS.items.image + endImage;
item_html += (RSS.items.pubDate == null) ? "" :
RSS.items.pubDate;
item_html += (RSS.items.description == null) ? "" :
startDescription + RSS.items.description + endDescription;
item_html += (RSS.items.link == null) ? "" : startLink +
RSS.items.link + endLink;
item_html += endTag;
}
rssDiv.innerHTML += item_html;
}
}
return true;
</code>
I'm trying to build a page that utilizes google calendar data to build
dynamic content, but for some reason i cannot get Firefox to display
information via the innerHTML property. I know for sure that the data
is coming through and it is being formatted using my coding, but for
some reason when it goes to apply the informaiton to the innerHTML
property of the div tag it doesn't get applied.
Strangely enough, it works fine for IE. I read up on the net that
Firefox supports the innerHTML property, so i'm completely confused.
Can someone please help me out?
here is a copy of the coding
<code>
var startItem = "<div id='rss_item'>";
var startTitle = "<h2 id='rss_title'>";
var startImage = "<img id='rss_image' src=\"";
var startDescription = "<p id='rss_description'>";
var startLink = "<a target='_blank' class='rss_link' href='";
var endImage = "\" onError=\"erroredImage(this)\">";
var endTitle = "</h2>";
var endDescription = "</p>";
var endLink = "'>View More Details</a>";
var endTag = "</div>";
var item_html = "";
if (RSS.items.length<=0)
rssDiv.innerHTML = noItemsMessage
else
{
for (var i=0; i<RSS.items.length; i++)
{
if (RSS.items.title!=null)
{
item_html = startItem; //begin item listing
item_html += (RSS.items.title == null) ? "" : startTitle +
RSS.items.title + endTitle;
item_html += (RSS.items.image == null) ? "" : startImage +
RSS.items.image + endImage;
item_html += (RSS.items.pubDate == null) ? "" :
RSS.items.pubDate;
item_html += (RSS.items.description == null) ? "" :
startDescription + RSS.items.description + endDescription;
item_html += (RSS.items.link == null) ? "" : startLink +
RSS.items.link + endLink;
item_html += endTag;
}
rssDiv.innerHTML += item_html;
}
}
return true;
</code>