jump menu not functioning properly

  • Thread starter Henry Contreras
  • Start date
H

Henry Contreras

I have just uploaded my new site to server. However, I have inserted 2 jump
menus on my header (includes folder). The jump menu works only when I am on
my home page. However, when you are on another page the jump menu does not
work. I have tried opening my remote site and recalculate hyperlinks,....To
no avail. Still the same thing. Can anyone help? Thanks in advance!

You may take look at it yourself: www.healthsourcenutrition.com

Henry Contreras
 
F

FrontPageForms

Hi Henry,

The Jump Menu you are using is similar to one I use a lot. It requires a
<Head> script. YOu have included the script on the head of your index page,
but it looks like you didn't add it to the other pages.

<script language="JavaScript">
<!--
function FP_jumpMenu(el,frm,sel) {//v1.0
var href=el.options[el.selectedIndex].value; if(sel) el.selectedIndex=0;
if('_new'==frm) open(href); else eval(frm+".location='"+href+"'");
}
// -->
</script>
 
J

Jon Spivey

Hi Henry,

The jump menu relies on a javascript function which must be present in the
head of page. If it was me I'd write the jump menus so as not to require the
function then they'll work on every page. Try making the menus like this
<select size="1"
onchange="if(this.options.selectedIndex>1)location.href=this.options[this.options.selectedIndex].value;"
id="id1" name="D1">
<option value>Shop By Brand</option>
<option value>------------------------------</option>
<option value="../atkins.htm">Atkins</option>

<select size="1"
onchange="if(this.options.selectedIndex>1)location.href=this.options[this.options.selectedIndex].value;"
id="id2" name="D2">
<option value>Shop By Catagory</option>
<option value>-----------------------------------------------</option>
<option value="../amino_acids.htm">Amino Acids</option>

Doing it this way should make life easier.
 
H

Henry Contreras

Ok, I see that. Now, how would be an easy way to add it all pages (without
having to do each page individually). Since I have 500 + pages this would be
time consuming. Is there a way that I could rewrite it again into the
includes header that will apply it to all pages.

By the way, I did write these original jump menu into the includes headers,
wouldn't it have written it to all pages? What did I do wrong? Thanks!

Henry

FrontPageForms said:
Hi Henry,

The Jump Menu you are using is similar to one I use a lot. It requires a
<Head> script. YOu have included the script on the head of your index page,
but it looks like you didn't add it to the other pages.

<script language="JavaScript">
<!--
function FP_jumpMenu(el,frm,sel) {//v1.0
var href=el.options[el.selectedIndex].value; if(sel) el.selectedIndex=0;
if('_new'==frm) open(href); else eval(frm+".location='"+href+"'");
}
// -->
</script>

Henry Contreras said:
I have just uploaded my new site to server. However, I have inserted 2 jump
menus on my header (includes folder). The jump menu works only when I am on
my home page. However, when you are on another page the jump menu does not
work. I have tried opening my remote site and recalculate hyperlinks,....To
no avail. Still the same thing. Can anyone help? Thanks in advance!

You may take look at it yourself: www.healthsourcenutrition.com

Henry Contreras
 
R

Ronx

The <select> form will go into an Include page and be inserted onto all
pages using the include. However, Includes only take what is between the
<body> and </body> tags in the included file. The JavaScript code you are
using requires each and every page to be opened in design view, when
FrontPage may automagically insert the code into the <head> section of the
page (the code appears to be a behaviour).
Else you will have to copy the JavaScript code yourself.

This could also be done using a global Search and Replace, but that may
place the code into pages you do not want it to go.

Jon Spivey's version can be placed into an Include page as is, it does not
need additional code in the <head> section.

--
Ron Symonds (Microsoft MVP - FrontPage)
Reply only to group - emails will be deleted unread.


Henry Contreras said:
Ok, I see that. Now, how would be an easy way to add it all pages (without
having to do each page individually). Since I have 500 + pages this would
be
time consuming. Is there a way that I could rewrite it again into the
includes header that will apply it to all pages.

By the way, I did write these original jump menu into the includes
headers,
wouldn't it have written it to all pages? What did I do wrong? Thanks!

Henry

FrontPageForms said:
Hi Henry,

The Jump Menu you are using is similar to one I use a lot. It requires a
<Head> script. YOu have included the script on the head of your index
page,
but it looks like you didn't add it to the other pages.

<script language="JavaScript">
<!--
function FP_jumpMenu(el,frm,sel) {//v1.0
var href=el.options[el.selectedIndex].value; if(sel) el.selectedIndex=0;
if('_new'==frm) open(href); else eval(frm+".location='"+href+"'");
}
// -->
</script>

Henry Contreras said:
I have just uploaded my new site to server. However, I have inserted 2
jump
menus on my header (includes folder). The jump menu works only when I
am on
my home page. However, when you are on another page the jump menu does
not
work. I have tried opening my remote site and recalculate
hyperlinks,....To
no avail. Still the same thing. Can anyone help? Thanks in advance!

You may take look at it yourself: www.healthsourcenutrition.com

Henry Contreras
 

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