Cache a XML file from a different server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amanjsingh
    New Member
    • Mar 2007
    • 48

    #1

    Cache a XML file from a different server

    Does anyone know how to cache (or download and overwrite) a file from internet periodocally withouth using any server side script (PHP, ASP Coldfusion etc)?

    I want to display RSS feeds on my website from CNET using their RSS XML file but I do not know how to repeatedly download the file to keep the latest version on my server.

    Thanks
    AJ
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    You will have to use a server-side language, but you can use Javascript as part of Ajax for client-side updates.

    Comment

    • amanjsingh
      New Member
      • Mar 2007
      • 48

      #3
      Originally posted by acoder
      You will have to use a server-side language, but you can use Javascript as part of Ajax for client-side updates.
      I thought that Ajax can itself pull out data for me from a remote server? Do I strictly have to use a server side scripting?

      Comment

      • amanjsingh
        New Member
        • Mar 2007
        • 48

        #4
        Cache a XML file from a different server- will it require a server side script ????

        Does anyone know how to cache (or download and overwrite) a file from internet periodocally withouth using any server side script (PHP, ASP Coldfusion etc)?

        I want to display RSS feeds on my website from CNET using their RSS XML file but I do not know how to repeatedly download the file to keep the latest version on my server.

        I want to know whether AJAX can work on its own to fetch the file or does it need a PHP or any other kind of server side scripting to cache the file on to my machine?

        Thanks
        AJ

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          What do you currently have?

          Comment

          • amanjsingh
            New Member
            • Mar 2007
            • 48

            #6
            Originally posted by acoder
            What do you currently have?
            Coldfusion on my server but I did not want to use index.CFM. I want to keep my page static. index.HTML. so I do not want to use any server side scr.

            any suggestsions?

            Comment

            • acoder
              Recognized Expert MVP
              • Nov 2006
              • 16032

              #7
              How are you currently obtaining the file?

              Ajax is only part Javascript - there's always a server-side element to it too.

              Comment

              • acoder
                Recognized Expert MVP
                • Nov 2006
                • 16032

                #8
                Originally posted by amanjsingh
                I thought that Ajax can itself pull out data for me from a remote server? Do I strictly have to use a server side scripting?
                There will be server-side scripting involved, but it doesn't involve unloading the page, so you could have your 'static' HTML page that calls some javascript. Read up on Ajax in the Offsite Links thread (top of this forum).

                Comment

                • acoder
                  Recognized Expert MVP
                  • Nov 2006
                  • 16032

                  #9
                  Merged threads.

                  Comment

                  • amanjsingh
                    New Member
                    • Mar 2007
                    • 48

                    #10
                    Originally posted by acoder
                    Merged threads.
                    Thanks.

                    I understand that I will have to use Server side scripts. I am using Coldfusion. Now the problem is -
                    (know that this is an intranet website that I am working for)

                    I am using CFHTTP to retrieve a certain document (xml rss) but it says "connection failure".

                    Can you suggest anything? It cannot be my firewall as all the communication is done over HTTP, right?

                    AJ

                    Comment

                    Working...