quicklink menu

A

Andre

Hi everyone
I have created a quick menu with a go button to help visitors find items in
a page easier. My problem is that it opens everytime in a new window and I
would like it to stay on the same page but just follow the bookmarks .. like
a normal hyperlink pointing to a bookmark would.
I am not good with programming. I tried to change the onclick values but am
stuck
Thanks in advance

here is the code

<p align="center"><b><i><font color="#683808">Quick Find:</font></i> </b>
<select id="Choice" style="color: #683808; font-family:Georgia;
font-size:8pt; font-style:italic" size="1" name="ShoppingSelect">
<option>Select a Catagory</option>
<option value="c:\wwwroot\swakop3\shopping.htm#clothing">Clothing,
boutique's, outfitters
</option>
<option value="c:\wwwroot\swakop3\shopping.htm#realestate">Real Estate,
Property
</option>
<option value="c:\wwwroot\swakop3\shopping.htm#giftscraftscurio">Gifts,
crafts, creations, curios
</option>
<option value="c:\wwwroot\swakop3\shopping.htm#coffeeshop">Coffee Shops,
Café, Confectioners
</option>
<option value="c:\wwwroot\swakop3\shopping.htm#computerdealers">Computers,
software etc
</option>
<option value="c:\wwwroot\swakop3\shopping.htm#fabric etc">Fabric, Material
</option>
<option value="c:\wwwroot\swakop3\shopping.htm#MineralsGems">Gems, Minerals
etc</option>
<option value="c:\wwwroot\swakop3\shopping.htm#car rentals">Car, 4x4
Rentals etc</option>
<option href="c:\wwwrooswakop3\shopping.htm#jewellers">Jewelery and art
galaries</option>
</select>
<input type="button" value="Go"
onclick="window.open(Choice.options[Choice.selectedIndex].value)"
style="font-family: Georgia; font-size: 8pt; color: #683808; font-style:
italic">
 
S

Stefan B Rusynko

1) your absolute links are to a disc based location on your PC
As in
<option value="c:\wwwroot\swakop3\shopping.htm#clothing">Clothing, boutique's, outfitters </option>
They should be to relative page links in your site
<option value="shopping.htm#clothing">Clothing, boutique's, outfitters </option>

2) Check and make sure you don't have a <base ref='''"> tag in code view
- delete it

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Hi everyone
| I have created a quick menu with a go button to help visitors find items in
| a page easier. My problem is that it opens everytime in a new window and I
| would like it to stay on the same page but just follow the bookmarks .. like
| a normal hyperlink pointing to a bookmark would.
| I am not good with programming. I tried to change the onclick values but am
| stuck
| Thanks in advance
|
| here is the code
|
| <p align="center"><b><i><font color="#683808">Quick Find:</font></i> </b>
| <select id="Choice" style="color: #683808; font-family:Georgia;
| font-size:8pt; font-style:italic" size="1" name="ShoppingSelect">
| <option>Select a Catagory</option>
| <option value="c:\wwwroot\swakop3\shopping.htm#clothing">Clothing,
| boutique's, outfitters
| </option>
| <option value="c:\wwwroot\swakop3\shopping.htm#realestate">Real Estate,
| Property
| </option>
| <option value="c:\wwwroot\swakop3\shopping.htm#giftscraftscurio">Gifts,
| crafts, creations, curios
| </option>
| <option value="c:\wwwroot\swakop3\shopping.htm#coffeeshop">Coffee Shops,
| Café, Confectioners
| </option>
| <option value="c:\wwwroot\swakop3\shopping.htm#computerdealers">Computers,
| software etc
| </option>
| <option value="c:\wwwroot\swakop3\shopping.htm#fabric etc">Fabric, Material
| </option>
| <option value="c:\wwwroot\swakop3\shopping.htm#MineralsGems">Gems, Minerals
| etc</option>
| <option value="c:\wwwroot\swakop3\shopping.htm#car rentals">Car, 4x4
| Rentals etc</option>
| <option href="c:\wwwrooswakop3\shopping.htm#jewellers">Jewelery and art
| galaries</option>
| </select>
| <input type="button" value="Go"
| onclick="window.open(Choice.options[Choice.selectedIndex].value)"
| style="font-family: Georgia; font-size: 8pt; color: #683808; font-style:
| italic">
 
A

Andre

Hi Stefan... I changed the option values and checked for any <base ref> in
the code but there is none on the entire page...
this piece of code i suspect might be the problem, especialy the
"window.open" part isn't that what keeps opening up a new window everytime ?
instead of just scrolling down to the bookmark ?
Thanks for the fast response

<input type="button" value="Go"
onclick="window.open(Choice.options[Choice.selectedIndex].value)"
style="font-family: Georgia; font-size: 8pt; color: #683808; font-style:
italic">


Stefan B Rusynko said:
1) your absolute links are to a disc based location on your PC
As in
<option value="c:\wwwroot\swakop3\shopping.htm#clothing">Clothing, boutique's, outfitters </option>
They should be to relative page links in your site
<option value="shopping.htm#clothing">Clothing, boutique's, outfitters </option>

2) Check and make sure you don't have a <base ref='''"> tag in code view
- delete it

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Hi everyone
| I have created a quick menu with a go button to help visitors find items in
| a page easier. My problem is that it opens everytime in a new window and I
| would like it to stay on the same page but just follow the bookmarks .. like
| a normal hyperlink pointing to a bookmark would.
| I am not good with programming. I tried to change the onclick values but am
| stuck
| Thanks in advance
|
| here is the code
|
| <p align="center"><b><i><font color="#683808">Quick Find:</font></i> </b>
| <select id="Choice" style="color: #683808; font-family:Georgia;
| font-size:8pt; font-style:italic" size="1" name="ShoppingSelect">
| <option>Select a Catagory</option>
| <option value="c:\wwwroot\swakop3\shopping.htm#clothing">Clothing,
| boutique's, outfitters
| </option>
| <option value="c:\wwwroot\swakop3\shopping.htm#realestate">Real Estate,
| Property
| </option>
| <option value="c:\wwwroot\swakop3\shopping.htm#giftscraftscurio">Gifts,
| crafts, creations, curios
| </option>
| <option value="c:\wwwroot\swakop3\shopping.htm#coffeeshop">Coffee Shops,
| Café, Confectioners
| </option>
| <option value="c:\wwwroot\swakop3\shopping.htm#computerdealers">Computers,
| software etc
| </option>
| <option value="c:\wwwroot\swakop3\shopping.htm#fabric etc">Fabric, Material
| </option>
| <option value="c:\wwwroot\swakop3\shopping.htm#MineralsGems">Gems, Minerals
| etc</option>
| <option value="c:\wwwroot\swakop3\shopping.htm#car rentals">Car, 4x4
| Rentals etc</option>
| <option href="c:\wwwrooswakop3\shopping.htm#jewellers">Jewelery and art
| galaries</option>
| </select>
| <input type="button" value="Go"
| onclick="window.open(Choice.options[Choice.selectedIndex].value)"
| style="font-family: Georgia; font-size: 8pt; color: #683808; font-style:
| italic">
 
S

Stefan B Rusynko

You are right
You need a onClick="location=
instead of a onclick="window.open

You can use this page to generate a correct script
http://javascript.internet.com/generators/drop-down-menu.html

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Hi Stefan... I changed the option values and checked for any <base ref> in
| the code but there is none on the entire page...
| this piece of code i suspect might be the problem, especialy the
| "window.open" part isn't that what keeps opening up a new window everytime ?
| instead of just scrolling down to the bookmark ?
| Thanks for the fast response
|
| <input type="button" value="Go"
| onclick="window.open(Choice.options[Choice.selectedIndex].value)"
| style="font-family: Georgia; font-size: 8pt; color: #683808; font-style:
| italic">
|
|
| "Stefan B Rusynko" wrote:
|
| > 1) your absolute links are to a disc based location on your PC
| > As in
| > <option value="c:\wwwroot\swakop3\shopping.htm#clothing">Clothing, boutique's, outfitters </option>
| > They should be to relative page links in your site
| > <option value="shopping.htm#clothing">Clothing, boutique's, outfitters </option>
| >
| > 2) Check and make sure you don't have a <base ref='''"> tag in code view
| > - delete it
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > _____________________________________________
| >
| >
| > | Hi everyone
| > | I have created a quick menu with a go button to help visitors find items in
| > | a page easier. My problem is that it opens everytime in a new window and I
| > | would like it to stay on the same page but just follow the bookmarks .. like
| > | a normal hyperlink pointing to a bookmark would.
| > | I am not good with programming. I tried to change the onclick values but am
| > | stuck
| > | Thanks in advance
| > |
| > | here is the code
| > |
| > | <p align="center"><b><i><font color="#683808">Quick Find:</font></i> </b>
| > | <select id="Choice" style="color: #683808; font-family:Georgia;
| > | font-size:8pt; font-style:italic" size="1" name="ShoppingSelect">
| > | <option>Select a Catagory</option>
| > | <option value="c:\wwwroot\swakop3\shopping.htm#clothing">Clothing,
| > | boutique's, outfitters
| > | </option>
| > | <option value="c:\wwwroot\swakop3\shopping.htm#realestate">Real Estate,
| > | Property
| > | </option>
| > | <option value="c:\wwwroot\swakop3\shopping.htm#giftscraftscurio">Gifts,
| > | crafts, creations, curios
| > | </option>
| > | <option value="c:\wwwroot\swakop3\shopping.htm#coffeeshop">Coffee Shops,
| > | Café, Confectioners
| > | </option>
| > | <option value="c:\wwwroot\swakop3\shopping.htm#computerdealers">Computers,
| > | software etc
| > | </option>
| > | <option value="c:\wwwroot\swakop3\shopping.htm#fabric etc">Fabric, Material
| > | </option>
| > | <option value="c:\wwwroot\swakop3\shopping.htm#MineralsGems">Gems, Minerals
| > | etc</option>
| > | <option value="c:\wwwroot\swakop3\shopping.htm#car rentals">Car, 4x4
| > | Rentals etc</option>
| > | <option href="c:\wwwrooswakop3\shopping.htm#jewellers">Jewelery and art
| > | galaries</option>
| > | </select>
| > | <input type="button" value="Go"
| > | onclick="window.open(Choice.options[Choice.selectedIndex].value)"
| > | style="font-family: Georgia; font-size: 8pt; color: #683808; font-style:
| > | italic">
| >
| >
| >
 
A

Andre

thanks Stefan, it worked like a charm

Stefan B Rusynko said:
You are right
You need a onClick="location=
instead of a onclick="window.open

You can use this page to generate a correct script
http://javascript.internet.com/generators/drop-down-menu.html

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Hi Stefan... I changed the option values and checked for any <base ref> in
| the code but there is none on the entire page...
| this piece of code i suspect might be the problem, especialy the
| "window.open" part isn't that what keeps opening up a new window everytime ?
| instead of just scrolling down to the bookmark ?
| Thanks for the fast response
|
| <input type="button" value="Go"
| onclick="window.open(Choice.options[Choice.selectedIndex].value)"
| style="font-family: Georgia; font-size: 8pt; color: #683808; font-style:
| italic">
|
|
| "Stefan B Rusynko" wrote:
|
| > 1) your absolute links are to a disc based location on your PC
| > As in
| > <option value="c:\wwwroot\swakop3\shopping.htm#clothing">Clothing, boutique's, outfitters </option>
| > They should be to relative page links in your site
| > <option value="shopping.htm#clothing">Clothing, boutique's, outfitters </option>
| >
| > 2) Check and make sure you don't have a <base ref='''"> tag in code view
| > - delete it
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > _____________________________________________
| >
| >
| > | Hi everyone
| > | I have created a quick menu with a go button to help visitors find items in
| > | a page easier. My problem is that it opens everytime in a new window and I
| > | would like it to stay on the same page but just follow the bookmarks .. like
| > | a normal hyperlink pointing to a bookmark would.
| > | I am not good with programming. I tried to change the onclick values but am
| > | stuck
| > | Thanks in advance
| > |
| > | here is the code
| > |
| > | <p align="center"><b><i><font color="#683808">Quick Find:</font></i> </b>
| > | <select id="Choice" style="color: #683808; font-family:Georgia;
| > | font-size:8pt; font-style:italic" size="1" name="ShoppingSelect">
| > | <option>Select a Catagory</option>
| > | <option value="c:\wwwroot\swakop3\shopping.htm#clothing">Clothing,
| > | boutique's, outfitters
| > | </option>
| > | <option value="c:\wwwroot\swakop3\shopping.htm#realestate">Real Estate,
| > | Property
| > | </option>
| > | <option value="c:\wwwroot\swakop3\shopping.htm#giftscraftscurio">Gifts,
| > | crafts, creations, curios
| > | </option>
| > | <option value="c:\wwwroot\swakop3\shopping.htm#coffeeshop">Coffee Shops,
| > | Café, Confectioners
| > | </option>
| > | <option value="c:\wwwroot\swakop3\shopping.htm#computerdealers">Computers,
| > | software etc
| > | </option>
| > | <option value="c:\wwwroot\swakop3\shopping.htm#fabric etc">Fabric, Material
| > | </option>
| > | <option value="c:\wwwroot\swakop3\shopping.htm#MineralsGems">Gems, Minerals
| > | etc</option>
| > | <option value="c:\wwwroot\swakop3\shopping.htm#car rentals">Car, 4x4
| > | Rentals etc</option>
| > | <option href="c:\wwwrooswakop3\shopping.htm#jewellers">Jewelery and art
| > | galaries</option>
| > | </select>
| > | <input type="button" value="Go"
| > | onclick="window.open(Choice.options[Choice.selectedIndex].value)"
| > | style="font-family: Georgia; font-size: 8pt; color: #683808; font-style:
| > | italic">
| >
| >
| >
 

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