Professional Web Applications Themes

URL's in RSS Readers - Macromedia Flash Data Integration

I have a movie that pulls sports headlines from the BBC Sports xml feed. I can display the data ok, however, when i click on the stories, i'm not taken to the relevent page, in fact nothing happens. The url is present in the xml, so am I missing something: [url]http://www.yourbirmingham.co.uk/sport.htm[/url] Many Thanks...

  1. #1

    Default URL's in RSS Readers

    I have a movie that pulls sports headlines from the BBC Sports xml feed.

    I can display the data ok, however, when i click on the stories, i'm not taken
    to the relevent page, in fact nothing happens. The url is present in the xml,
    so am I missing something:

    [url]http://www.yourbirmingham.co.uk/sport.htm[/url]

    Many Thanks

    Si Fi Guest

  2. #2

    Default Re: URL's in RSS Readers

    Can anyone help??

    Si Fi Guest

  3. #3

    Default Re: URL's in RSS Readers

    First of all, there 's some problem with your flash code, as your swf makes
    recalls every second after you click get data. This is... well, don't need to
    charge the server side in this brutal way, make it autoupdate every minute, or
    5 minutes :-)

    Whenever you are binding the data from the XML, if the URL is a part of the
    Object attributes (XML attribute or childNode to the main Node Objects), then
    you can just assign an event to the cell as:

    //suppose the url property is with name Link in the binded Xml objects.
    // Llistener object.
    var dgListener:Object = new Object();
    dgListener.cellPress = function(evt_obj:Object) {
    var Link_str:String = evt_obj.target.getItemAt(evt_obj.itemIndex).Link;
    _global.getURL(Link_str, "_blank")l
    };

    // Add listener to your DataGrid
    Sample_dg.addEventListener("cellPress", dgListener);

    Dimitar

    Dimitar Guest

  4. #4

    Default Re: URL's in RSS Readers

    Thanks for your reply.

    I may have seen a problem with the php file that i use to get the external XML
    feed from:

    <?php

    $dataURL =
    "http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/england/west_midlands/rss.xm
    l";

    //note that this will not follow redirects
    readfile($dataURL);

    ?>

    See where it says '//note that this will not follow redirects', is this php
    file then not the cause of the link's not being followed. If so I have no idea
    what I should have in the php file, this is a unkown area for me.

    Si Fi Guest

Similar Threads

  1. free card readers
    By Barbara Brundage in forum Adobe Photoshop Elements
    Replies: 0
    Last Post: September 1st, 02:45 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139