drop-down list

S

Sandy

For FrontPage 2003 - I need to create a drop-down list in a frame with a
number of items in the list. When I select an item in the list I need that
item to open a page in the frame to the right. Each item in the list needs
to open a seperate page.

How do I create this type of drop-down list?
 
C

Chris Freeman

Sandy,
Here's a little script I snagged from somewhere. It's a javascript that you
plug in the url and when selected, it will forward to the page diplayed:

<!-- Called when deck selection changes -->
<script language="JavaScript">

<!-- Begin
function formHandler(selection){
if (selection)
{
var URL = selection[selection.selectedIndex].value;
window.location.href = URL;
}
}
// End -->
</script>

<form name="DeckForm">
<select onchange="javascript:formHandler(document.DeckForm.site)" size="1"
name="site">
<option value="#">- Select a Deck -</option>
<option
value="http://montrosetravel.com/index.php?id=884,888,0,0,1,0"
selected>Aloha</option>
<option
value="http://montrosetravel.com/index.php?id=884,889,0,0,1,0">Baja</option>
</select>
</form>



In the option value, place the url. Between the option tags, place the name
you want displayed on the screen. You can add as many options as you want.
 
S

Sandy

Chris,

Thanks for the javascript, but I am self taught on FrontPage 2003. How do I
get the javascript into the page or frame.

Do I somehow use the Web Component or do I somehow select Code a the bottom
and copy and past it in there somewhere.

Usually once someone gets me started I am ok but I never worked with
plug-ins or javascript.

I need help! Can you explain to get me started or is there something I can
read online somewhere.

Thanks
--
Sandy


Chris Freeman said:
Sandy,
Here's a little script I snagged from somewhere. It's a javascript that you
plug in the url and when selected, it will forward to the page diplayed:

<!-- Called when deck selection changes -->
<script language="JavaScript">

<!-- Begin
function formHandler(selection){
if (selection)
{
var URL = selection[selection.selectedIndex].value;
window.location.href = URL;
}
}
// End -->
</script>

<form name="DeckForm">
<select onchange="javascript:formHandler(document.DeckForm.site)" size="1"
name="site">
<option value="#">- Select a Deck -</option>
<option
value="http://montrosetravel.com/index.php?id=884,888,0,0,1,0"
selected>Aloha</option>
<option
value="http://montrosetravel.com/index.php?id=884,889,0,0,1,0">Baja</option>
</select>
</form>



In the option value, place the url. Between the option tags, place the name
you want displayed on the screen. You can add as many options as you want.
--
Chris Freeman
IT Project Coordinator


Sandy said:
For FrontPage 2003 - I need to create a drop-down list in a frame with a
number of items in the list. When I select an item in the list I need that
item to open a page in the frame to the right. Each item in the list needs
to open a seperate page.

How do I create this type of drop-down list?
 
C

Chris Freeman

Sandy,
I've been there before, no problem, this is really easy. simply paste the
entire code into your page using the code view. If you have designed the page
in design view, click the bottom tab to split the screen between design and
code.

have you already created a drop down? Then select the drop down, and you
will see how the code around is selected. Then click into the code window,
and delete all the code surrounding the drop down. This will usually start
and end with <select> </select>.

Then copy/paste this code in its place. You can edit the code for the urls
and display values that you want in the code window. You can also right code
on the drop down object in design view and select the properties, and edit
the values in the dialog window.

Let me know if that helps.

---------------------------------------------------------------------------
Chris Freeman
IT Project Coordinator


Sandy said:
Chris,

Thanks for the javascript, but I am self taught on FrontPage 2003. How do I
get the javascript into the page or frame.

Do I somehow use the Web Component or do I somehow select Code a the bottom
and copy and past it in there somewhere.

Usually once someone gets me started I am ok but I never worked with
plug-ins or javascript.

I need help! Can you explain to get me started or is there something I can
read online somewhere.

Thanks
--
Sandy


Chris Freeman said:
Sandy,
Here's a little script I snagged from somewhere. It's a javascript that you
plug in the url and when selected, it will forward to the page diplayed:

<!-- Called when deck selection changes -->
<script language="JavaScript">

<!-- Begin
function formHandler(selection){
if (selection)
{
var URL = selection[selection.selectedIndex].value;
window.location.href = URL;
}
}
// End -->
</script>

<form name="DeckForm">
<select onchange="javascript:formHandler(document.DeckForm.site)" size="1"
name="site">
<option value="#">- Select a Deck -</option>
<option
value="http://montrosetravel.com/index.php?id=884,888,0,0,1,0"
selected>Aloha</option>
<option
value="http://montrosetravel.com/index.php?id=884,889,0,0,1,0">Baja</option>
</select>
</form>



In the option value, place the url. Between the option tags, place the name
you want displayed on the screen. You can add as many options as you want.
--
Chris Freeman
IT Project Coordinator


Sandy said:
For FrontPage 2003 - I need to create a drop-down list in a frame with a
number of items in the list. When I select an item in the list I need that
item to open a page in the frame to the right. Each item in the list needs
to open a seperate page.

How do I create this type of drop-down list?
 
S

Sandy

Chris,

I have tried and I keep getting and error message:
'document.DeckFormsite' is null or not an object

This confuses me.

Also, when you said to edit the code for the urls and display values - where
exactly within the code that you gave me do I made these changes?

I am sure it is something simple, but I still need help. If you are able to
call me I would be very grateful. 717-965-5668

Thanks

--
Sandy


Chris Freeman said:
Sandy,
Here's a little script I snagged from somewhere. It's a javascript that you
plug in the url and when selected, it will forward to the page diplayed:

<!-- Called when deck selection changes -->
<script language="JavaScript">

<!-- Begin
function formHandler(selection){
if (selection)
{
var URL = selection[selection.selectedIndex].value;
window.location.href = URL;
}
}
// End -->
</script>

<form name="DeckForm">
<select onchange="javascript:formHandler(document.DeckForm.site)" size="1"
name="site">
<option value="#">- Select a Deck -</option>
<option
value="http://montrosetravel.com/index.php?id=884,888,0,0,1,0"
selected>Aloha</option>
<option
value="http://montrosetravel.com/index.php?id=884,889,0,0,1,0">Baja</option>
</select>
</form>



In the option value, place the url. Between the option tags, place the name
you want displayed on the screen. You can add as many options as you want.
--
Chris Freeman
IT Project Coordinator


Sandy said:
For FrontPage 2003 - I need to create a drop-down list in a frame with a
number of items in the list. When I select an item in the list I need that
item to open a page in the frame to the right. Each item in the list needs
to open a seperate page.

How do I create this type of drop-down list?
 

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