By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,317 Members | 1,290 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,317 IT Pros & Developers. It's quick & easy.

Cache a XML file from a different server

P: 48
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
Jun 15 '07 #1
Share this Question
Share on Google+
9 Replies


acoder
Expert Mod 15k+
P: 16,027
You will have to use a server-side language, but you can use Javascript as part of Ajax for client-side updates.
Jun 15 '07 #2

P: 48
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?
Jun 18 '07 #3

P: 48
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
Jun 18 '07 #4

acoder
Expert Mod 15k+
P: 16,027
What do you currently have?
Jun 18 '07 #5

P: 48
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?
Jun 18 '07 #6

acoder
Expert Mod 15k+
P: 16,027
How are you currently obtaining the file?

Ajax is only part Javascript - there's always a server-side element to it too.
Jun 19 '07 #7

acoder
Expert Mod 15k+
P: 16,027
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).
Jun 19 '07 #8

acoder
Expert Mod 15k+
P: 16,027
Merged threads.
Jun 19 '07 #9

P: 48
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
Jun 19 '07 #10

Post your reply

Sign in to post your reply or Sign up for a free account.