Results 1 to 12 of 12

Thread: [Serious] VBF RSS Feed.

  1. #1

    Thread Starter
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    [Serious] VBF RSS Feed.

    I have just completed a early version of VBF Rss feed. Now I need some information regarding RSS Feed. First when and how the links gets updated by Browser? Currently I can click on "Refresh Live Link" in FireFox and it reloads the links. Is there any way I can specify the refresh time in my RSS or in FireFox?

    I would like to hear from people who are using RSS Feed.

    I will post the Links to my VBF Feed for everyone within the next few days.

    Thanks for your help.
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: [Serious] VBF RSS Feed.

    There is an XPCOM API that seems to deal with a timer

    http://www.xulplanet.com/references/.../c_timer1.html


    Maybe check into that and see what you can make of it
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Re: [Serious] VBF RSS Feed.

    Quote Originally Posted by Cander
    There is an XPCOM API that seems to deal with a timer

    http://www.xulplanet.com/references/.../c_timer1.html


    Maybe check into that and see what you can make of it
    Thanks Cander for your post, I will look into it.

    I just noticed that If I close the browser and reopen it, then the RSS Feed gets refreshed. What I need is a timer or Refresh the Links when user click on the main menu item.

    I wonder It is at all possible to load the new Items without restarting the browser or by clicking Refresh Link button.
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: [Serious] VBF RSS Feed.

    I would think that Timer api should be exactly what you need. Basically you initialize with how many milliseconds between each refresh then a CallBack function that it will run when the timer 'fires'

    My BEST guess from just looking at that page I sent you, something like this MIGHT work

    Code:
    var mycallback = 
    {
      notify: function(thetimer) 
     {
        //do your thing.
     }
    };
    
    var myTimer = Components.classes['@mozilla.org/timer;1'].getService(Components.interfaces.nsITimer)
    
    //fire every 1 second
    myTimer.initWithCallback(mycallback, 1000, mytimer.TYPE_REPEATING_SLACK);
    Again, just a guess as I cant test this since we are not allowe to install Firefox at work.
    Last edited by Cander; Feb 28th, 2005 at 02:06 PM.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5

    Thread Starter
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Re: [Serious] VBF RSS Feed.

    Quote Originally Posted by Cander
    I would think that Timer api should be exactly what you need. Basically you initialize with how many milliseconds between each refresh then a CallBack function that it will run when the timer 'fires'

    My BEST guess from just looking at that page I sent you, something like this MIGHT work

    Code:
    var mycallback = 
    {
      notify: function(thetimer) 
     {
        //do your thing.
     }
    };
    
    var myTimer = Components.classes['@mozilla.org/file/directory_service;1'].getService(Components.interfaces.nsITimer)
    
    //fire every 1 second
    myTimer.initWithCallback(mycallback, 1000, mytimer.TYPE_REPEATING_SLACK);
    Again, just a guess as I cant test this since we are not allowe to install Firefox at work.
    Sorry for my ignorance, but where would I place the code? Since I am not writing any custom menu or component, FireFox is creating the Menu From the XML file which I am generating.

    Thanks for your help again.
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  6. #6
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: [Serious] VBF RSS Feed.

    Dont really know since I am not 100% sure what exactly you are doing. I assumed you were writing an extension. What exactly is generating the RSS?
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  7. #7

    Thread Starter
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Re: [Serious] VBF RSS Feed.

    Quote Originally Posted by Cander
    Dont really know since I am not 100% sure what exactly you are doing. I assumed you were writing an extension. What exactly is generating the RSS?
    I am using an asp file to generate the XML dynamically.
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  8. #8
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: [Serious] VBF RSS Feed.

    Oh ok. Hmm, well i dont know. Maybe the RSS standard has a tag that specifies a refresh?
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  9. #9

    Thread Starter
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Re: [Serious] VBF RSS Feed.

    Quote Originally Posted by Cander
    Oh ok. Hmm, well i dont know. Maybe the RSS standard has a tag that specifies a refresh?
    Yep thats the sort of thing i am looking at. I looked at an existing RSS Feed and they have an element called <lastBuildDate>, It could be that field that browser checks. I am generating that date dynamically everytime the my asp file is called.

    Anyhow I will do some more research, thanks for your posts. If any one else has any other thoughts or suggestion please post.
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  10. #10
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: [Serious] VBF RSS Feed.

    Is it possible for you to use a JS timer or something?



    ØØ

  11. #11

    Thread Starter
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Re: [Serious] VBF RSS Feed.

    Quote Originally Posted by NoteMe
    Is it possible for you to use a JS timer or something?



    ØØ
    Nope, its a pure XML file (RSS 2).

    Just doing some searching, I dont think FireFox Allow Refreshing Link, It only refresh the links when you load the browser. Thunderbird on the other hand lets you specify a refresh time. Its probably same with other RSS reader. I havent use thunderbird but will check it out. It would have been great If you could have the link refreshed without having to close or clicking refresh menu.

    Anyone else here use RSS with FireFox?
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  12. #12

    Thread Starter
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Re: [Serious] VBF RSS Feed.

    Just posted my first attempt, have a look if you are interested. Link is in my sig.
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

Posting Permissions

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



Click Here to Expand Forum to Full Width