×

Discussion Board

Results 1 to 4 of 4

Hybrid View

  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    8

    Exclamation 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);
        }
    Hope sum1 can help me...
    Thanks...

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    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

  3. #3
    Registered User
    Join Date
    Feb 2010
    Posts
    8

    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...

  4. #4
    Registered User
    Join Date
    Apr 2011
    Location
    Hyderabad, IN
    Posts
    36

    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 .

Similar Threads

  1. How to read images from the RSS Feed URLs in JavaME
    By sreekanth288 in forum Mobile Java General
    Replies: 1
    Last Post: 2009-01-27, 11:48
  2. My widget stopped working. Feed read timeout
    By miklos.szanyi@gmail.com in forum Widsets Development
    Replies: 0
    Last Post: 2009-01-23, 10:00
  3. embed object for mp3 with progressive download
    By snarf21 in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2008-05-14, 15:41
  4. Replies: 0
    Last Post: 2008-05-14, 15:40
  5. Embed a URL link within CRichtext
    By Deolali in forum Symbian
    Replies: 1
    Last Post: 2004-03-09, 17:14

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •