Use Form list box to gather PDF or RTF file from web server

G

GBH

I would like to click on the item in the list and have the file download to
me from the web server. (I believe the web server software is called
cPanel). I have used its file upload feature to place the RTF file in the
directory www and I have named the file 03-0504.27b.rtf, the same name in
Form Properties with the option Save the data in a file on my web server(file
format is formatted text).
 
G

GBH

GBH said:
I would like to click on the item in the list and have the file download to
me from the web server. (I believe the web server software is called
cPanel). I have used its file upload feature to place the RTF file in the
directory www and I have named the file 03-0504.27b.rtf, the same name in
Form Properties with the option Save the data in a file on my web server(file
format is formatted text). The website page with the list box is
-- http://www.saintjames-parish.org/index_files/Page602.htm
Brian
 
R

Rob Giordano \(Crash\)

What you want is a Jump URL menu, what you have is a selection menu for a
form (almost the same thing).

It may just be easier to create a normal hyperlink to the rtf file.



--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression
 
G

GBH

Rob,
Thank you for your reply. I am not sure what a Jump URL menu means but my
plans are to list 52 weekly bulletins for the Parish. Your other suggestion
for hyperlinks might prove to be a bit unruly based on my plan but my vision
of this may be wrong or I may be interpreting your answer differently than
your intended explaination. Would you please elaborate? My knowledge of
some terms may be limited although an explaination might help me understand
your meaning better.
 
S

Spike

Consider this:

Add a page to the site that lists all 52 bulletins for a year that can be
accessed from your colander page i.e.. replace your form box with a link
to the bulletin page for the year in question
Create a link to each bulletin form the list of bulletins in the bulletins
folder

Week 1 2008 (Main jest of the bulletin for those who are looking for a
particular subject mater)
Week 2 2008
~~~~~
Week 52 2008
Hyperlink each one to the rtf files /bulletins/week01_2008.rtf
/bulletins/week02_2008.rtf etc

Spike
 
G

GBH

Spike,
Thank you for your input. I was hoping to avoid creating another web page
but this is certainly an option.
 
R

Rob Giordano \(Crash\)

Changing the linked files will be much easier than editing a Jump URL script
every week.


--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression






GBH said:
Spike,
Thank you for your input. I was hoping to avoid creating another web page
but this is certainly an option.
 
D

DavidF

Here is another idea. Use the insert htm code fragment tool to insert the
following code into your page (the code between the dash lines). Try copy
and pasting the code, insert > html code fragment box, and do a web page
preview. Make sure the code fragment box is wide enough so everything
displays on the same line. I put a Google link in for demo purposes, so
click it, and hit go, and you will see what will happen with your .rtf files
once you get this set up. Notice it opens the file in a new window. That way
after your user views the bulletin and closes it, your page is still
there...they don't have to click the back button.

-----------------


<script language="JavaScript">

function goToPage(url)

{if (url != ""){window.open(url);}}

</script>



<form name="dropdown">

<label>Weekly Bulletin</label>

<select name="list" accesskey="E">

<option selected>Please select one</option>

<option
value="http://www.saintjames-parish.org/bulletins/yourfile.rtf">Week
1</option>

<option
value="http://www.saintjames-parish.org/bulletins/yourfile2.rft">Week
2</option>

<option value=http://www.google.com/>Google</option>

<option
value="http://www.saintjames-parish.org/bulletins/yourfile4.rft">Week
5</option>

</select>

<button onclick="goToPage(document.dropdown.list.options(

document.dropdown.list.selectedIndex).value)">Go</button>

</form>



---------------------------------

I would suggest copy and pasting the script into a NotePad text file so that
you can save it, edit it, and then copy and paste to the code fragment box
when you have it ready. Alternatively, paste it into a text box and drag the
text box into the scratch area beside the page you will be inserting it.
Then it will be handy to add to when you want to add a bulletin.

You can modify the code and the text as you desire. Week 1, Week 2 might be
replaced with a date for example. I would suggest that you put all your .rtf
files into a subfolder on your server called "bulletins", at the same level
as the "index_files" folder...but not in the index_files folder as you
currently have. This way you won't delete those old bulletin files when you
update your web pages and overwrite the index_files folder. I named your
bulletin files "yourfile1.rtf", but you can name it any way you want. As you
add more bulletins you just add another option value, and upload the revised
page. You might want to FTP uploading for those .rtf files...it would be
faster than use the file manager in your Control Panel.

Try copy and pasting the code, insert > html code fragment box, and do a web
page preview. Make sure the code fragment box is wide enough so everything
displays on the same line. I left the Google link in, so click it, and hit
go, and you will see what will happen with your .rtf files. Notice it opens
the file in a new window. That way after your user views the bulletin and
closes it, your page is still there...they don't have to click the back
button.

Good luck

DavidF
 
G

GBH

David, Thank you. This is the look and feel I was hoping to see. I
appreciate your effort and time to help me in this matter.
 
D

DavidF

You are welcome. Gotta laugh at myself though. I moved a paragraph, and then
forgot to delete the old one...deja vue all over again.

DavidF
 
D

DavidF

Spike,

Thanks. Just borrowed some of your ideas and expanded on them.

This old dog must have sounded a bit redundant or absent minded after copy
and pasting the last paragraph, and then forgetting to delete it.

DavidF
 

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

Top