RSS Framework

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • RizlaUK
    Indigo Rose Customer
    • May 2006
    • 5478

    RSS Framework

    this was inspired by FoxLeader's post


    its a simple set of actions to enable you to read rss feeds in your applications

    AMS_RSS.Download()
    This will return the local filepath of the downloaded file use this variable in all other actions to access the rss feed it works this way because XML.Load will only allow 1 xml file open at a time this way you can open many rss feeds useing varables or a table. if any error a blank string ("") is returned.

    AMS_RSS.LoadLinks()
    This will load the links from a rss xml file and return a table of values
    For v1 (tb.Title[INDEX], tb.Desc[INDEX], tb.Link[INDEX])
    For v2 (tb.Title[INDEX], tb.Desc[INDEX], tb.Link[INDEX], tbPubDate[INDEX], tbGUID[INDEX])
    if any error -1 is returned

    AMS_RSS.CountLinks()
    This will count the links in the rss feed
    returns number of links, if any error (-1) is returned.

    AMS_RSS.GetVesion()
    This will get the version of the rss feed
    returnd a number, if any error (-1) is returned.

    details on the arguments can be found in the action editors descriptions

    put AMS_RSS.xml in your Data\Actions folder and include the script or add to globals ot add to includeed files bla bla bla, its a script, use how you like


    Licence

    if you want to use this code in a project then you must do 3 things

    1, record your self jumping on one leg with a lampshade on your head singing "Im A Little Teapot".
    2, publish the said video on youtube or other well known video uploading service.
    3, post link to said video here on this thread.

    then thats it, anyone found useing this code in a project and hasent posted a link will be tickeld to death with a very large feather......you have been warned!!!!

    lol
    Last edited by RizlaUK; 02-01-2009, 11:34 AM.
    Embrace change in your life, you never know, it could all work out for the best
  • ShadowUK
    No longer a forum member
    • Oct 2007
    • 1321

    #2
    Originally posted by RizlaUK View Post
    tickeld to death with a very large feather
    Eek!

    Comment

    • FoxLeader
      Forum Member
      • Nov 2006
      • 432

      #3
      Thanks Rizla, I will have a look at that soon!
      And... lol @ your license guidelines :lol

      Comment

      • RizlaUK
        Indigo Rose Customer
        • May 2006
        • 5478

        #4
        lol @ your license guidelines
        lol, was in a funny mood, and wanted to see if anyone took it seriously..
        Embrace change in your life, you never know, it could all work out for the best

        Comment

        • brisk
          Forum Member
          • Jun 2008
          • 38

          #5
          great example im loving this..

          just wanting a little help on it so i can
          use a combo box with pre entered rss feeds

          what would i need to change in the button on click
          to get the data from the combo box to load

          if its at all possable..
          thanks

          Comment

          • Imagine Programming
            Indigo Rose Customer
            • Apr 2007
            • 4251

            #6
            There's alot of useful info in this example and in the AMS Help files. I bet if you look there you find your anwsers.
            Bas Groothedde
            Imagine Programming :: Blog

            AMS8 Plugins
            IMXLH Compiler

            Comment

            • brisk
              Forum Member
              • Jun 2008
              • 38

              #7
              yeah i know....
              i was just playing dumb
              my eyes were seeing things that
              were not there so every thing looked
              the same but none of it worked as i was
              typing it all wrong...
              anyway got what i wanted in the end......

              phewwwwwwwww

              less caffeine more sleep..... lol

              Comment

              • Imagine Programming
                Indigo Rose Customer
                • Apr 2007
                • 4251

                #8
                define:sleep ? :P

                CB-Uptime:48+ (lost count, really need some sleep:P)
                Bas Groothedde
                Imagine Programming :: Blog

                AMS8 Plugins
                IMXLH Compiler

                Comment

                • GoOgLe
                  Forum Member
                  • Mar 2007
                  • 452

                  #9
                  i dont understand why this example dont support uneuropian characters (fonts) even thought choosing country font script ???

                  Comment

                  • Imagine Programming
                    Indigo Rose Customer
                    • Apr 2007
                    • 4251

                    #10
                    Well that depends on the feed you're reading, every feed has a different charset in use.
                    Bas Groothedde
                    Imagine Programming :: Blog

                    AMS8 Plugins
                    IMXLH Compiler

                    Comment

                    • GoOgLe
                      Forum Member
                      • Mar 2007
                      • 452

                      #11
                      utf 8 charset

                      but also listboxes doesnt show them either !!!

                      Comment

                      • Imagine Programming
                        Indigo Rose Customer
                        • Apr 2007
                        • 4251

                        #12
                        What's the feed's url?
                        Bas Groothedde
                        Imagine Programming :: Blog

                        AMS8 Plugins
                        IMXLH Compiler

                        Comment

                        • GoOgLe
                          Forum Member
                          • Mar 2007
                          • 452

                          #13
                          is feed urls importand ?

                          Comment

                          • Imagine Programming
                            Indigo Rose Customer
                            • Apr 2007
                            • 4251

                            #14
                            Originally posted by GoOgLe View Post
                            is feed urls importand ?
                            Well yes, the feeds charset is the charset you have got to use. if the feed has characters only supported by Unicode or ISO, then UTF-8 won't work fine
                            Bas Groothedde
                            Imagine Programming :: Blog

                            AMS8 Plugins
                            IMXLH Compiler

                            Comment

                            Working...
                            X