fuhrmann
08-31-2006, 08:24 PM
I want to know if the following is possible and if someone could show me the code that is needed.
I have HTML code to go out to a server and get PDF documents from our (work) storage area.
I would like to be able to have an open text input where I can type in document names (one per line) and have the program run the code for each document name and open a new window to display the documents.
The code that gets me one document from the storage area is:
<form action="http://server_name/cgi-bin/pdm/view.cgi" method=GET enctype="application/x-www-form-urlencoded">
<INPUT TYPE="text" SIZE="10" NAME="name">
<INPUT TYPE="hidden" NAME="ext" VALUE="PDF">
<INPUT TYPE="submit" ACTION="http://server_name/cgi-bin/pdm/view.cgi" VALUE=". PDF" METHOD="GET">
</form>
This opens the document in the current window with Acrobat.
We are using IE6
I don't need a lot of error testing or for the routine to be user friendly, this is for my personal use to speed up my work. (The worst programs that I have ever seen were written by engineers for themselves.)
It is ok if a bad document name opens blank window or not at all.
The current code doesn't choke on bad document names, the screen just doesn't change.
My skill level - really rank beginner. I have learned enough HTML to handle minimal tasks. I have hacked out a couple of minimal web sites and gotten the code above to work.
I am a competent programmer in the old languages (Fortran, Quick Basic compiler). I.E. I understand things like looping and looking for the end of a list.
I have HTML code to go out to a server and get PDF documents from our (work) storage area.
I would like to be able to have an open text input where I can type in document names (one per line) and have the program run the code for each document name and open a new window to display the documents.
The code that gets me one document from the storage area is:
<form action="http://server_name/cgi-bin/pdm/view.cgi" method=GET enctype="application/x-www-form-urlencoded">
<INPUT TYPE="text" SIZE="10" NAME="name">
<INPUT TYPE="hidden" NAME="ext" VALUE="PDF">
<INPUT TYPE="submit" ACTION="http://server_name/cgi-bin/pdm/view.cgi" VALUE=". PDF" METHOD="GET">
</form>
This opens the document in the current window with Acrobat.
We are using IE6
I don't need a lot of error testing or for the routine to be user friendly, this is for my personal use to speed up my work. (The worst programs that I have ever seen were written by engineers for themselves.)
It is ok if a bad document name opens blank window or not at all.
The current code doesn't choke on bad document names, the screen just doesn't change.
My skill level - really rank beginner. I have learned enough HTML to handle minimal tasks. I have hacked out a couple of minimal web sites and gotten the code above to work.
I am a competent programmer in the old languages (Fortran, Quick Basic compiler). I.E. I understand things like looping and looking for the end of a list.