Open file on select from drop down list

J

jk

Hi,

I am editing the standard contact us page that is provided in frontpage
2002.I want to utilize the existing drop down list so when a user clicks a
selection, it will open a pdf file that resides in a folder within the web
site. I have tried countless times to direct it to the
folder.Some one gave me a sample script but i am unsure how it works.For
example...the form name is contact us and the form field properties is called
subject.There are three pdf files called "open acct" "volume discounts"
"enrollment form" which reside in a folder called webpdf.Does a script get
included into the HTML.?
 
K

Kevin Spencer

Can you show us what you have?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.
 
J

jk

Hi,
Well, i am using the contact page in front page 2002 that has a drop down
box and from reading this forum, i need a drop down box with a script to open
a url-linked pdf file in one of my folders.Is there a simple script to open
file on select? Would i need to repeat the script for each one of my three
files?
Thanks
 
J

jk

I am using frontpage 2002 and i need to use a drop down box.Is there
somewhere i can go to learn about a script for open file on select?

Thank you for any help
 
S

Steve Easton

Try this:
<form>
<p align="center">
<select id="Choice" style="color: #0000FF" size="1" name="mySelect">
<option value="">Select a file</option>
<option value="webpdf\open_acct.pdf">Open Account</option>
<option value="webpdf\volume_discounts.pdf">Discounts</option>
<option value="webpdf\enrollment_form.pdf">Enrollment
Form</option></select>
<input type="button" value="Go"
onclick="window.open(Choice.options[Choice.selectedIndex].value)">
</p></form>


Note that I have replaced the spaces in the pdf file names with underscores
_

You need to do that with the actual files.

Also the paths that I used "assume" that the page that will use the select
box lives in the same folder as the webpdf folder.

Also note that this uses a Go button. This is needed for people who
navigate with the keyboard and not the mouse, because otherwise they'll
never get past the first item in the drop down list.


Also this has the text set to blue if you don't want Blue remove:
style="color: #0000FF"
or change it to the color of your choice.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
K

Kevin Spencer

You did say that someone gave you a script, right?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.
 

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