"Dynamic" page content.

S

sophie_newbie

Basically I have written a cgi script in Python to automatically
download TIFF
images of patents from the US patent office and create a PDF file of
them.

What I want is that the user can see what is happening when the images
are being downloaded, because it takes a while to download them and
there can be anything up to 30 individual files for each image.

Is there a way of using Javascript or any other means, that I could it
could print on the webpage:

Downloading image 1

Downloading image 2
....
Downloading image X

as the individual pictures are being downloaded so the user doesn't
think the program is hanging?


To give you a better explaination of what I want, you could visit
www.pat2pdf.org.

Type in 123456 as the patent number, you see what it does? It tells the

user that it is requesting the various TIFF images and then displays
the link to the PDF file that it has created.

This is exactly what I want to do, so if anyone has any idea how it is
done I would be greatful.
 
M

Martin Honnen

sophie_newbie said:
Basically I have written a cgi script in Python to automatically
download TIFF
images of patents from the US patent office and create a PDF file of
them.
To give you a better explaination of what I want, you could visit
www.pat2pdf.org.

Type in 123456 as the patent number, you see what it does? It tells the

user that it is requesting the various TIFF images and then displays
the link to the PDF file that it has created.

Why do you think you need client-side JavaScript? Does that site work
with client-side script? No (well they do some advertising at the end
with script).
Ask in a Python CGI scripting group on how to achieve that, if threading
is possible you could use that to fetch the data while starting to send
HTML to the client.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,283
Messages
2,571,405
Members
48,100
Latest member
Calfin5299

Latest Threads

Top