Open File on drop down list selection

G

Guest

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.......................Please...how do you do this?
 
S

Steve Easton

Is this a Drop down select box with the down arrow which then shows a list
of items to select??


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

Guest

Hi jk,

The standard DD you add to a form isn't designed to hyperlink to anything.
It is script that accomplishes this.

Below is code you can use if you want a stand alone DD to link to your Pdf
files.

If you were actually trying to hyperlink to them within an existing form,
then I would use a DD that is designed to open in a new window.

Either way, make sure the path is correct. You can double click on the
existing phantom links to modify them. And this one has a blue background. In
Form field properties, click Style to access this.

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

<form>
<select name="useanyname" style="color:white; font-weight: bold;
fontsize=18; background: royalblue"
onchange="window.location=form.useanyname.options[form.useanyname.selectedIndex].value" size="1" >
<option selected>---Select a File---
<option value="folder/file.pdf" >Right Pdf
<option value="folder/file2.pdf" >Left Pdf
<option value="folder/file3.pdf" >Center Pdf
</select>
<input type=button value=Go
onclick="window.location=form.useanyname.options[form.useanyname.selectedIndex].value" >
</form>

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


Mike Smith,

http://FrontPageForms.com
FrontPage Form Tutorials
& Form Script Examples
 
G

Guest

Yes it is. The contact page is part of the wizards within frontpage and it
has the drop down list.This list has the items so they can be modified once
you right click on the form field properties. So yes ....it is the down arrow
with a list of items to select....thanks
 
G

Guest

Thanks,

After going to the form field properties, I went to the phantom links for
example "contact us" ,I highlight this selection then click style. then a
modify style box opens up with a slection of name selector which is greyed
out, style type which is greyed out, class and ID which are not greyed
out....where do i put this code or attach it to the "contact us" selection?

Thanks

AMysticWeb said:
Hi jk,

The standard DD you add to a form isn't designed to hyperlink to anything.
It is script that accomplishes this.

Below is code you can use if you want a stand alone DD to link to your Pdf
files.

If you were actually trying to hyperlink to them within an existing form,
then I would use a DD that is designed to open in a new window.

Either way, make sure the path is correct. You can double click on the
existing phantom links to modify them. And this one has a blue background. In
Form field properties, click Style to access this.

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

<form>
<select name="useanyname" style="color:white; font-weight: bold;
fontsize=18; background: royalblue"
onchange="window.location=form.useanyname.options[form.useanyname.selectedIndex].value" size="1" >
<option selected>---Select a File---
<option value="folder/file.pdf" >Right Pdf
<option value="folder/file2.pdf" >Left Pdf
<option value="folder/file3.pdf" >Center Pdf
</select>
<input type=button value=Go
onclick="window.location=form.useanyname.options[form.useanyname.selectedIndex].value" >
</form>

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


Mike Smith,

http://FrontPageForms.com
FrontPage Form Tutorials
& Form Script Examples



jk said:
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.......................Please...how do you do this?
 

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