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

How do i get a downloaded html file to update content via ajax?

P: 32
Hi,
I will allow users to download one zip file(contain HTML file and 1 image directory with -gif,jpeg files) to his local hard disk.

HTML file contain source code to display images

when user execute the 'HTML' file locally.I will display the images present in the local directory one by one in loop until user close the browser.

I want to implement like this

If i execute the 'HTML' file locally,first it needs to connect to server(i will use AJAX and i will connect to server) and check for any updates(other than images present in local directory).If there is any updates, he will download images and also updated HTML file to his local hard drive .

Using the 'updated HTML file' he can display the images locally.

I am having some doubt with all these issues:

1) how can i differentiate between already downloaded images and yet to download images in the server(i will store all the images in one directory).

2) Is there any way where i can download the updates automatically to client desktop (instead of prompting for 'save as' dialog box confirmation) from server

3) This HTML File needs to check for updates for every hour.If there is any updates.It needs to automatically get downloaded to client desktop(no 'save as' dialog box confirmation)

i am looking for some help from you guys

A.suresh
May 14 '07 #1
Share this Question
Share on Google+
1 Reply


Atli
Expert 5K+
P: 5,058
Hi.

Downloading files onto a users computer without showing the Save File dialog is not possible using any decent browser, as that would pose a major security threat.

A much simpler solution to your problem would be to display the images directly from the online server.
May 14 '07 #2

Post your reply

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