PC Review


Reply
Thread Tools Rate Thread

clicking on a item in a dropdown list, how do i link it

 
 
=?Utf-8?B?UG93ZGVycHVmZg==?=
Guest
Posts: n/a
 
      7th Jul 2005
I am new at this. I have a drop down menu with all the items listed, how do I
click on a item in the list so that it takes me to the page that I have
clicked on. I gather you have to make seperate pages for all the lists in the
menu.
PLEASE HELP someone.
Sure hope this makes sense.
 
Reply With Quote
 
 
 
 
Trevor L.
Guest
Posts: n/a
 
      7th Jul 2005
Have a look at this:
http://simplythebest.net/scripts/DHT...cript_100.html

From what I can tell, you just have to have each element in the list link to
another page
--
Cheers,
Trevor L., WIP (Web Interested Person)
Website: http://tandcl.homemail.com.au

Powderpuff wrote:
> I am new at this. I have a drop down menu with all the items listed,
> how do I click on a item in the list so that it takes me to the page
> that I have clicked on. I gather you have to make seperate pages for
> all the lists in the menu.
> PLEASE HELP someone.
> Sure hope this makes sense.



 
Reply With Quote
 
=?Utf-8?B?RGFuIEw=?=
Guest
Posts: n/a
 
      7th Jul 2005
Yes you have to make separate pages if you're going to link to them. In the
drop down list, add a link to the pages. For example:

<form>
<select onChange="if(options[selectedIndex].value)
window.location.href=(options[selectedIndex].value)">
<option>Select...
<option value="home.htm">Home</option>
<option value="links.htm">Links</option>
<option value="contact.htm">Contact</option>
</select>
</form>


"Powderpuff" wrote:

> I am new at this. I have a drop down menu with all the items listed, how do I
> click on a item in the list so that it takes me to the page that I have
> clicked on. I gather you have to make seperate pages for all the lists in the
> menu.
> PLEASE HELP someone.
> Sure hope this makes sense.

 
Reply With Quote
 
Steve Easton
Guest
Posts: n/a
 
      7th Jul 2005
fwiw, you should use onClick with a Go button instead of onChange.
If you use onChange, a person who navigates using the keyboard instead of a mouse,
will never get past the first item in the drop down.

;-)

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

"Dan L" <(E-Mail Removed)> wrote in message
news:32D98857-6F78-49CC-A157-(E-Mail Removed)...
> Yes you have to make separate pages if you're going to link to them. In the
> drop down list, add a link to the pages. For example:
>
> <form>
> <select onChange="if(options[selectedIndex].value)
> window.location.href=(options[selectedIndex].value)">
> <option>Select...
> <option value="home.htm">Home</option>
> <option value="links.htm">Links</option>
> <option value="contact.htm">Contact</option>
> </select>
> </form>
>
>
> "Powderpuff" wrote:
>
> > I am new at this. I have a drop down menu with all the items listed, how do I
> > click on a item in the list so that it takes me to the page that I have
> > clicked on. I gather you have to make seperate pages for all the lists in the
> > menu.
> > PLEASE HELP someone.
> > Sure hope this makes sense.



 
Reply With Quote
 
MikeR
Guest
Posts: n/a
 
      7th Jul 2005
How about bookmarks on the same page?
MikeR

Dan L wrote:
> Yes you have to make separate pages if you're going to link to them. In the
> drop down list, add a link to the pages. For example:
>
> <form>
> <select onChange="if(options[selectedIndex].value)
> window.location.href=(options[selectedIndex].value)">
> <option>Select...
> <option value="home.htm">Home</option>
> <option value="links.htm">Links</option>
> <option value="contact.htm">Contact</option>
> </select>
> </form>
>
>
> "Powderpuff" wrote:
>
>
>>I am new at this. I have a drop down menu with all the items listed, how do I
>>click on a item in the list so that it takes me to the page that I have
>>clicked on. I gather you have to make seperate pages for all the lists in the
>>menu.
>>PLEASE HELP someone.
>>Sure hope this makes sense.

 
Reply With Quote
 
=?Utf-8?B?RGFuIEw=?=
Guest
Posts: n/a
 
      7th Jul 2005
A hyperlink by any other name is still a hyperlink. :-)

"MikeR" wrote:

> How about bookmarks on the same page?
> MikeR
>
> Dan L wrote:
> > Yes you have to make separate pages if you're going to link to them. In the
> > drop down list, add a link to the pages. For example:
> >
> > <form>
> > <select onChange="if(options[selectedIndex].value)
> > window.location.href=(options[selectedIndex].value)">
> > <option>Select...
> > <option value="home.htm">Home</option>
> > <option value="links.htm">Links</option>
> > <option value="contact.htm">Contact</option>
> > </select>
> > </form>
> >
> >
> > "Powderpuff" wrote:
> >
> >
> >>I am new at this. I have a drop down menu with all the items listed, how do I
> >>click on a item in the list so that it takes me to the page that I have
> >>clicked on. I gather you have to make seperate pages for all the lists in the
> >>menu.
> >>PLEASE HELP someone.
> >>Sure hope this makes sense.

>

 
Reply With Quote
 
=?Utf-8?B?UG93ZGVycHVmZg==?=
Guest
Posts: n/a
 
      9th Jul 2005
Hi Dan

Thank you for taking the time to help me, I gather that I have to do this in
the code section of Front page.....
So each page has a htm after it.....I got a drop down script from another
site and put it in my code section like it said to do, and changed their code
to the catergories that I have instead....
Here is part of the script that I have from the script site which is in the
head part of the code
Begin
function formHandler(form) {
var windowprops = "height=500,width=500,location=no,"
+ "scrollbars=no,menubars=no,toolbars=no,resizable=yes";

var URL = form.site.options[form.site.selectedIndex].value;
popup = window.open(URL,"MenuPopup",windowprops);
}
// End -->
and here is the start of what is in the body part.....
<a href="Newspapers%20&%20Mags.htm"><!--webbot bot="Validation"
s-display-name="Adult" b-value-required="TRUE" --><select name="Select One"
SIZE=1 onChange="formHandler(this.form)" multiple>
<option value="Adult">Adult</option>
<option value="Astrology">Astrology</option>
<option value="Aviation">Aviation &amp; Defense</option>
<option value="Bikers">Bikers,Lifestyle & Tattoos</option>
<option value="Boating">Boating</option>
I really would appreciate any help that you might be able to give me.....

Thank you so much,

From a silly Aussie
"Dan L" wrote:

> Yes you have to make separate pages if you're going to link to them. In the
> drop down list, add a link to the pages. For example:
>
> <form>
> <select onChange="if(options[selectedIndex].value)
> window.location.href=(options[selectedIndex].value)">
> <option>Select...
> <option value="home.htm">Home</option>
> <option value="links.htm">Links</option>
> <option value="contact.htm">Contact</option>
> </select>
> </form>
>
>
> "Powderpuff" wrote:
>
> > I am new at this. I have a drop down menu with all the items listed, how do I
> > click on a item in the list so that it takes me to the page that I have
> > clicked on. I gather you have to make seperate pages for all the lists in the
> > menu.
> > PLEASE HELP someone.
> > Sure hope this makes sense.

 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      9th Jul 2005
Remove the hyperlink wrapping the form field - illegal html
Remove <a href="Newspapers%20&%20Mags.htm"> and the closing tag </a>

Then for each "page" in your dropdown add the page location for the value
<option value="Adultpage.htm">Adult</option>
or if Adult is a bookmark on the page Newspapers_and_Mags.htm
<option value="Newspapers_and_Mags.htm#Adult">Adult</option>

PS
remove all spaces and punctuation from your file names (& is reserved and not allowed in a file names)
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"Powderpuff" <(E-Mail Removed)> wrote in message news:85C74F1F-B6E0-40BC-9093-(E-Mail Removed)...
| Hi Dan
|
| Thank you for taking the time to help me, I gather that I have to do this in
| the code section of Front page.....
| So each page has a htm after it.....I got a drop down script from another
| site and put it in my code section like it said to do, and changed their code
| to the catergories that I have instead....
| Here is part of the script that I have from the script site which is in the
| head part of the code
| Begin
| function formHandler(form) {
| var windowprops = "height=500,width=500,location=no,"
| + "scrollbars=no,menubars=no,toolbars=no,resizable=yes";
|
| var URL = form.site.options[form.site.selectedIndex].value;
| popup = window.open(URL,"MenuPopup",windowprops);
| }
| // End -->
| and here is the start of what is in the body part.....
| <a href="Newspapers%20&%20Mags.htm"><!--webbot bot="Validation"
| s-display-name="Adult" b-value-required="TRUE" --><select name="Select One"
| SIZE=1 onChange="formHandler(this.form)" multiple>
| <option value="Adult">Adult</option>
| <option value="Astrology">Astrology</option>
| <option value="Aviation">Aviation &amp; Defense</option>
| <option value="Bikers">Bikers,Lifestyle & Tattoos</option>
| <option value="Boating">Boating</option>
| I really would appreciate any help that you might be able to give me.....
|
| Thank you so much,
|
| From a silly Aussie
| "Dan L" wrote:
|
| > Yes you have to make separate pages if you're going to link to them. In the
| > drop down list, add a link to the pages. For example:
| >
| > <form>
| > <select onChange="if(options[selectedIndex].value)
| > window.location.href=(options[selectedIndex].value)">
| > <option>Select...
| > <option value="home.htm">Home</option>
| > <option value="links.htm">Links</option>
| > <option value="contact.htm">Contact</option>
| > </select>
| > </form>
| >
| >
| > "Powderpuff" wrote:
| >
| > > I am new at this. I have a drop down menu with all the items listed, how do I
| > > click on a item in the list so that it takes me to the page that I have
| > > clicked on. I gather you have to make seperate pages for all the lists in the
| > > menu.
| > > PLEASE HELP someone.
| > > Sure hope this makes sense.


 
Reply With Quote
 
=?Utf-8?B?UG93ZGVycHVmZg==?=
Guest
Posts: n/a
 
      10th Jul 2005
Thank you for your help, and sorry to say I have done what you say but when I
click on the Adult in the drop down list it comes up and says Error 14 Object
needed.
I have the page Adult.htm....this is so frustrating, hope you or someone can
tell me what I am doing wrong..

"Stefan B Rusynko" wrote:

> Remove the hyperlink wrapping the form field - illegal html
> Remove <a href="Newspapers%20&%20Mags.htm"> and the closing tag </a>
>
> Then for each "page" in your dropdown add the page location for the value
> <option value="Adultpage.htm">Adult</option>
> or if Adult is a bookmark on the page Newspapers_and_Mags.htm
> <option value="Newspapers_and_Mags.htm#Adult">Adult</option>
>
> PS
> remove all spaces and punctuation from your file names (& is reserved and not allowed in a file names)
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> To find the best Newsgroup for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
> _____________________________________________
>
>
> "Powderpuff" <(E-Mail Removed)> wrote in message news:85C74F1F-B6E0-40BC-9093-(E-Mail Removed)...
> | Hi Dan
> |
> | Thank you for taking the time to help me, I gather that I have to do this in
> | the code section of Front page.....
> | So each page has a htm after it.....I got a drop down script from another
> | site and put it in my code section like it said to do, and changed their code
> | to the catergories that I have instead....
> | Here is part of the script that I have from the script site which is in the
> | head part of the code
> | Begin
> | function formHandler(form) {
> | var windowprops = "height=500,width=500,location=no,"
> | + "scrollbars=no,menubars=no,toolbars=no,resizable=yes";
> |
> | var URL = form.site.options[form.site.selectedIndex].value;
> | popup = window.open(URL,"MenuPopup",windowprops);
> | }
> | // End -->
> | and here is the start of what is in the body part.....
> | <a href="Newspapers%20&%20Mags.htm"><!--webbot bot="Validation"
> | s-display-name="Adult" b-value-required="TRUE" --><select name="Select One"
> | SIZE=1 onChange="formHandler(this.form)" multiple>
> | <option value="Adult">Adult</option>
> | <option value="Astrology">Astrology</option>
> | <option value="Aviation">Aviation & Defense</option>
> | <option value="Bikers">Bikers,Lifestyle & Tattoos</option>
> | <option value="Boating">Boating</option>
> | I really would appreciate any help that you might be able to give me.....
> |
> | Thank you so much,
> |
> | From a silly Aussie
> | "Dan L" wrote:
> |
> | > Yes you have to make separate pages if you're going to link to them. In the
> | > drop down list, add a link to the pages. For example:
> | >
> | > <form>
> | > <select onChange="if(options[selectedIndex].value)
> | > window.location.href=(options[selectedIndex].value)">
> | > <option>Select...
> | > <option value="home.htm">Home</option>
> | > <option value="links.htm">Links</option>
> | > <option value="contact.htm">Contact</option>
> | > </select>
> | > </form>
> | >
> | >
> | > "Powderpuff" wrote:
> | >
> | > > I am new at this. I have a drop down menu with all the items listed, how do I
> | > > click on a item in the list so that it takes me to the page that I have
> | > > clicked on. I gather you have to make seperate pages for all the lists in the
> | > > menu.
> | > > PLEASE HELP someone.
> | > > Sure hope this makes sense.
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dropdown List - list item endings not visible if column too narrow =?Utf-8?B?QUs5OTU1?= Microsoft Excel Misc 2 27th Apr 2007 09:02 AM
Easily link to text lower in email by clicking item list on top? =?Utf-8?B?bGluayB3aXRoaW4gZW1haWwgdGV4dA==?= Microsoft Outlook Discussion 2 29th Jul 2005 06:33 AM
Clicking on a mailto link generates 'can't create the item' error =?Utf-8?B?SnVsaWFuIEAgWmVyb09uZQ==?= Microsoft Outlook Discussion 0 3rd Nov 2004 04:22 AM
Get Dropdown list Item Sebastian Santacroce Microsoft VB .NET 0 18th Nov 2003 07:10 PM
Select item from dropdown list, item code is displayed in cell Meghan Microsoft Excel Misc 2 14th Oct 2003 08:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:40 AM.