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
9 2015 acoder 16,027
Recognized Expert Moderator MVP
You will have to use a server-side language, but you can use Javascript as part of Ajax for client-side updates.
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?
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
acoder 16,027
Recognized Expert Moderator MVP
What do you currently have?
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?
acoder 16,027
Recognized Expert Moderator MVP
How are you currently obtaining the file?
Ajax is only part Javascript - there's always a server-side element to it too.
acoder 16,027
Recognized Expert Moderator MVP
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).
acoder 16,027
Recognized Expert Moderator MVP
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
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Nadav |
last post by:
Hi,
I am new to WebControls, I have created a WebControl that is used to present
an image, the image bing presented is created on runtime, each client side
button click causes the image to change, this require to prevent this image
from being cached, I have tried to play around with:
Context.Response.AddHeader("Cache-Control", ... )
and with
Context.Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache)
BUT Still, the...
|
by: Wolfgang Kaml |
last post by:
I am not sure if this is more of an expert question, but I am sure that they
are out there.
I'd like to setup a general application or bin directory on my Win2003.Net
Server that will hold some useful utils that more pages on that server can
use.
As an example, I have created a Page Counter class that opens an Access .mdb
file, counts the current entries for that page, and adds a new entry with
some information regarding the current...
|
by: Arthur Dzhelali |
last post by:
Is there any way to cache dataset on one page and it will be accessible for
one user?
if you declare dataset shared it will stay on the server and page will be
able reference to it on reload, but in this case it will be shared with
other users who use the page.
Right now I found work around it by saving each dataset as xml file with
users's sessionid in file name and reading it on page reload.
is there a better way?
|
by: Fernando Chilvarguer |
last post by:
Hi,
I'm retriving data from a database and storing it on the Cache Object using
the following code:
HttpContext.Current.Cache.Insert(
cacheItemKey,
contentDS, //THE DATASET WITH MY DATA
null,
DateTime.Now.AddSeconds(600),
|
by: Erick |
last post by:
i have an asp.net application and I want to save the results of an sql
query in cache. Because the queries take 28 seconds to run (there are
twelve similar queries) I want to run it all at 4am, Place the
results in cache and use those values the rest of the day for all
users.
I have something like this
CallMe = New Caching.CacheItemRemovedCallback(AddressOf
Refresh)
| |
by: rrossney |
last post by:
Please look at the "what I've already done" section of this message
before responding to it: I believe that I've done everything that the
people who experience this error are typically told to do.
I have created an ASP.NET web service that I have running on my
development machine, and am trying to get it to run on my test server.
Both machines are running Windows 2000 SP4, IIS 5, and the .NET 2.0
framework.
When I attempt to access...
|
by: siddharthkhare |
last post by:
Hi All,
what is the diference between these two cache control header.
no-cache and no-store.
I have read the w3.org explanation.
So lets say I am using only no-cache ....my understanding is that
nothing is cached and nothing is writen to disk.
|
by: moondaddy |
last post by:
I had to repost this because I had to update and change my msdn alias. I
will re-ask the question and clarify a few things that were not clear
before.
This code is all executed on my dev machine running winXP sp2 and VS2005.
I'm using a c# 2.0 winforms app which talks to a c#2.0 asp.net app that also
contains 1 web service. Note: the webpage and web service are located side
by side in the same web app.
|
by: Andrew Jocelyn |
last post by:
Hi
I'm running an ASP.NET web application under IIS. I'm inserting a cache
object with a file based CacheDependency. I've noticed that when the file
changes the Cache object is not always immediately invalidated.
e.g. Cache.Insert("myobj", data, new CacheDependency(filePath));
When I make a change to the file 'filePath' and call the object from the
cache it is not null. I'm disposing of the FileStream object immediately
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |