how to embed image and mp3 from outside url read from xml feed
I m using the wrt plugin for visual studio....
Choosed project rss reader project.....
when i do this....
my app start up and load the xml.. n shuts down....
y a??
[CODE]if (item.url != null) {
buf += "<div class=\"FeedItemLink\">";
buf += "<img src =\""+item.description+"\" />";
buf += "<a href=\"JavaScript:void(0)\" onclick=\"openURL('" + item.url + "'); return false;\">";
buf += "Listen....";
buf += "</a>";
buf += "</div>";
}
return buf;
}
// Opens a URL.
function openURL(url) {
if (window.widget) {
// in WRT
embed = document.createElement("embed");
embed.setAttribute("src", url);
embed.setAttribute("hidden", true);
embed.setAttribute("autostart", true);
document.body.appendChild(embed);
} else {
// outside WRT
embed = document.createElement("embed");
embed.setAttribute("src", url);
embed.setAttribute("hidden", true);
embed.setAttribute("autostart", true);
document.body.appendChild(embed);
}[/CODE]
Hope sum1 can help me...
Thanks...
Re: how to embed image and mp3 from outside url read from xml feed
Hi elite08,
to better unterstand your issue: are you testing on an emulator or real device? Have you identified the line of JavaScript code that causes your widget to close?
Pit
Re: how to embed image and mp3 from outside url read from xml feed
hi,
i was testing using my e72 device....
hope you could help me... i m nt sure how to identified the line of JavaScript code that causes the widget to close...
Thanks...
Re: how to embed image and mp3 from outside url read from xml feed
Iam working on the same task can you help w me with ur .cpp codes and .h codes you are using. Ia want to read the url to pick the xml feed .