Object Expected Error Line 27 char 2

G

Guest

I've created a DHTML drop down menu which I have placed in my shared upper
border. It works fine with drop downs on the index.htm but gives an error
on all other pages and the drop downs don't work.
The error, which only occurs on the page when I mouse-over the drop down
menu, is "Object Expected" for line 27 character 2. [Buy line 27 is
different on all of these pages.]
Any ideas?
 
M

Murray

9 times out of 10 (I thought about making it 9.5 times but worried about how
to count that half time) this error means that there is some javascript
function being called that is not present on the page.

Can you show me your page?
 
G

Guest

Ok, I've posted it at www.missioneperte.it (all in Italian but you can see
the nav bar clearly enough). It all works on the
www.missioneperte.it/index.html page but the drop downs fail on all other
pages. What do you think?

Murray said:
9 times out of 10 (I thought about making it 9.5 times but worried about how
to count that half time) this error means that there is some javascript
function being called that is not present on the page.

Can you show me your page?

--
Murray

Michael said:
I've created a DHTML drop down menu which I have placed in my shared upper
border. It works fine with drop downs on the index.htm but gives an error
on all other pages and the drop downs don't work.
The error, which only occurs on the page when I mouse-over the drop down
menu, is "Object Expected" for line 27 character 2. [Buy line 27 is
different on all of these pages.]
Any ideas?
 
G

Guest

Oddly enough the drop downs work on www.missioneperte.it/altri/risorse.htm as
well as on www.missioneperte.it/index.html. The rest of the pages I've tried
don't have drop downs just errors.

Michael said:
Ok, I've posted it at www.missioneperte.it (all in Italian but you can see
the nav bar clearly enough). It all works on the
www.missioneperte.it/index.html page but the drop downs fail on all other
pages. What do you think?

Murray said:
9 times out of 10 (I thought about making it 9.5 times but worried about how
to count that half time) this error means that there is some javascript
function being called that is not present on the page.

Can you show me your page?

--
Murray

Michael said:
I've created a DHTML drop down menu which I have placed in my shared upper
border. It works fine with drop downs on the index.htm but gives an error
on all other pages and the drop downs don't work.
The error, which only occurs on the page when I mouse-over the drop down
menu, is "Object Expected" for line 27 character 2. [Buy line 27 is
different on all of these pages.]
Any ideas?
 
M

Murray

On the home page, this line -

<b onmouseover="openMenu('cellula')"><font face="Verdana">

calls the openMenu() javascript function, which is right here in the head of
the document -

function openMenu(){
var a=arguments,o,s,l,m,c,t,p,r;
if(document.menuOpen){
if ((o=FP_getObjectByID(document.menuOpen))!=null){
s=(document.layers)?o:blush:.style;
s.visibility=(document.layers)?'hide':'hidden';document.menuOpen=false;}
if ((c=FP_getObjectByID('closer'))!=null){
t=(document.layers)?c:c.style;
t.visibility=(document.layers)?'hide':'hidden';}}
if ((l=FP_getObjectByID(a[0]))!=null){
m=(document.layers)?l:l.style;
m.visibility=(document.layers)?'show':'visible';document.menuOpen=a[0];}
if ((p=FP_getObjectByID('closer'))!=null){
r=(document.layers)?p:p.style;r.visibility=(document.layers)?'show':'visible';}
}
// -->
</script>
<meta name="Microsoft Border" content="tlb, default">
</head>

While on the interior pages, that function (as well as others) is missing
from the head of the document. This is why your menu is not working - the
required js is not there. This is why the error message you are getting is
"object expected". The browser looked for the function called openMenu()
and couldn't find it.

The solution is to make sure that the head region of your interior pages
looks just like the head region of your home page with regard to the js
function definitions.

--
Murray

Michael said:
Ok, I've posted it at www.missioneperte.it (all in Italian but you can see
the nav bar clearly enough). It all works on the
www.missioneperte.it/index.html page but the drop downs fail on all other
pages. What do you think?

Murray said:
9 times out of 10 (I thought about making it 9.5 times but worried about
how
to count that half time) this error means that there is some javascript
function being called that is not present on the page.

Can you show me your page?

--
Murray

Michael said:
I've created a DHTML drop down menu which I have placed in my shared
upper
border. It works fine with drop downs on the index.htm but gives an
error
on all other pages and the drop downs don't work.
The error, which only occurs on the page when I mouse-over the drop
down
menu, is "Object Expected" for line 27 character 2. [Buy line 27 is
different on all of these pages.]
Any ideas?
 
G

Guest

I see it now! You are right and the solve works! Question? Since this is a
shared border effect, why can't I just get the top.htm file to work and look
right?

I'm frustrated that I need to manually paste this into every page (more than
100 on my site!).

THanks again!

Michael

Murray said:
On the home page, this line -

<b onmouseover="openMenu('cellula')"><font face="Verdana">

calls the openMenu() javascript function, which is right here in the head of
the document -

function openMenu(){
var a=arguments,o,s,l,m,c,t,p,r;
if(document.menuOpen){
if ((o=FP_getObjectByID(document.menuOpen))!=null){
s=(document.layers)?o:blush:.style;
s.visibility=(document.layers)?'hide':'hidden';document.menuOpen=false;}
if ((c=FP_getObjectByID('closer'))!=null){
t=(document.layers)?c:c.style;
t.visibility=(document.layers)?'hide':'hidden';}}
if ((l=FP_getObjectByID(a[0]))!=null){
m=(document.layers)?l:l.style;
m.visibility=(document.layers)?'show':'visible';document.menuOpen=a[0];}
if ((p=FP_getObjectByID('closer'))!=null){
r=(document.layers)?p:p.style;r.visibility=(document.layers)?'show':'visible';}
}
// -->
</script>
<meta name="Microsoft Border" content="tlb, default">
</head>

While on the interior pages, that function (as well as others) is missing
from the head of the document. This is why your menu is not working - the
required js is not there. This is why the error message you are getting is
"object expected". The browser looked for the function called openMenu()
and couldn't find it.

The solution is to make sure that the head region of your interior pages
looks just like the head region of your home page with regard to the js
function definitions.

--
Murray

Michael said:
Ok, I've posted it at www.missioneperte.it (all in Italian but you can see
the nav bar clearly enough). It all works on the
www.missioneperte.it/index.html page but the drop downs fail on all other
pages. What do you think?

Murray said:
9 times out of 10 (I thought about making it 9.5 times but worried about
how
to count that half time) this error means that there is some javascript
function being called that is not present on the page.

Can you show me your page?

--
Murray

I've created a DHTML drop down menu which I have placed in my shared
upper
border. It works fine with drop downs on the index.htm but gives an
error
on all other pages and the drop downs don't work.
The error, which only occurs on the page when I mouse-over the drop
down
menu, is "Object Expected" for line 27 character 2. [Buy line 27 is
different on all of these pages.]
Any ideas?
 
T

Thomas A. Rowe

If want use JavaScript in a Shared Border or FP Include Page, the JavaScript function must be place
between the <body> JavaScript function </body> and any links contained with in the function must be
absolute URLs (http://www.domainname.com/images/image1.jpg, etc.), not relative URLs
(../images/image1.jpg).

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Michael said:
I see it now! You are right and the solve works! Question? Since this is a
shared border effect, why can't I just get the top.htm file to work and look
right?

I'm frustrated that I need to manually paste this into every page (more than
100 on my site!).

THanks again!

Michael

Murray said:
On the home page, this line -

<b onmouseover="openMenu('cellula')"><font face="Verdana">

calls the openMenu() javascript function, which is right here in the head of
the document -

function openMenu(){
var a=arguments,o,s,l,m,c,t,p,r;
if(document.menuOpen){
if ((o=FP_getObjectByID(document.menuOpen))!=null){
s=(document.layers)?o:blush:.style;
s.visibility=(document.layers)?'hide':'hidden';document.menuOpen=false;}
if ((c=FP_getObjectByID('closer'))!=null){
t=(document.layers)?c:c.style;
t.visibility=(document.layers)?'hide':'hidden';}}
if ((l=FP_getObjectByID(a[0]))!=null){
m=(document.layers)?l:l.style;
m.visibility=(document.layers)?'show':'visible';document.menuOpen=a[0];}
if ((p=FP_getObjectByID('closer'))!=null){
r=(document.layers)?p:p.style;r.visibility=(document.layers)?'show':'visible';}
}
// -->
</script>
<meta name="Microsoft Border" content="tlb, default">
</head>

While on the interior pages, that function (as well as others) is missing
from the head of the document. This is why your menu is not working - the
required js is not there. This is why the error message you are getting is
"object expected". The browser looked for the function called openMenu()
and couldn't find it.

The solution is to make sure that the head region of your interior pages
looks just like the head region of your home page with regard to the js
function definitions.

--
Murray

Michael said:
Ok, I've posted it at www.missioneperte.it (all in Italian but you can see
the nav bar clearly enough). It all works on the
www.missioneperte.it/index.html page but the drop downs fail on all other
pages. What do you think?

:

9 times out of 10 (I thought about making it 9.5 times but worried about
how
to count that half time) this error means that there is some javascript
function being called that is not present on the page.

Can you show me your page?

--
Murray

I've created a DHTML drop down menu which I have placed in my shared
upper
border. It works fine with drop downs on the index.htm but gives an
error
on all other pages and the drop downs don't work.
The error, which only occurs on the page when I mouse-over the drop
down
menu, is "Object Expected" for line 27 character 2. [Buy line 27 is
different on all of these pages.]
Any ideas?
 
M

Murray

Why would root relative, e.g.,

/images/image.jpg

not work?

--
Murray

Thomas A. Rowe said:
If want use JavaScript in a Shared Border or FP Include Page, the
JavaScript function must be place
between the <body> JavaScript function </body> and any links contained
with in the function must be
absolute URLs (http://www.domainname.com/images/image1.jpg, etc.), not
relative URLs
(../images/image1.jpg).

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Michael said:
I see it now! You are right and the solve works! Question? Since this
is a
shared border effect, why can't I just get the top.htm file to work and
look
right?

I'm frustrated that I need to manually paste this into every page (more
than
100 on my site!).

THanks again!

Michael

Murray said:
On the home page, this line -

<b onmouseover="openMenu('cellula')"><font face="Verdana">

calls the openMenu() javascript function, which is right here in the
head of
the document -

function openMenu(){
var a=arguments,o,s,l,m,c,t,p,r;
if(document.menuOpen){
if ((o=FP_getObjectByID(document.menuOpen))!=null){
s=(document.layers)?o:blush:.style;
s.visibility=(document.layers)?'hide':'hidden';document.menuOpen=false;}
if ((c=FP_getObjectByID('closer'))!=null){
t=(document.layers)?c:c.style;
t.visibility=(document.layers)?'hide':'hidden';}}
if ((l=FP_getObjectByID(a[0]))!=null){
m=(document.layers)?l:l.style;
m.visibility=(document.layers)?'show':'visible';document.menuOpen=a[0];}
if ((p=FP_getObjectByID('closer'))!=null){
r=(document.layers)?p:p.style;r.visibility=(document.layers)?'show':'visible';}
}
// -->
</script>
<meta name="Microsoft Border" content="tlb, default">
</head>

While on the interior pages, that function (as well as others) is
missing
from the head of the document. This is why your menu is not working -
the
required js is not there. This is why the error message you are
getting is
"object expected". The browser looked for the function called
openMenu()
and couldn't find it.

The solution is to make sure that the head region of your interior
pages
looks just like the head region of your home page with regard to the js
function definitions.

--
Murray

Ok, I've posted it at www.missioneperte.it (all in Italian but you
can see
the nav bar clearly enough). It all works on the
www.missioneperte.it/index.html page but the drop downs fail on all
other
pages. What do you think?

:

9 times out of 10 (I thought about making it 9.5 times but worried
about
how
to count that half time) this error means that there is some
javascript
function being called that is not present on the page.

Can you show me your page?

--
Murray

I've created a DHTML drop down menu which I have placed in my
shared
upper
border. It works fine with drop downs on the index.htm but gives
an
error
on all other pages and the drop downs don't work.
The error, which only occurs on the page when I mouse-over the
drop
down
menu, is "Object Expected" for line 27 character 2. [Buy line 27
is
different on all of these pages.]
Any ideas?
 
T

Thomas A. Rowe

If working on the live/remote site, then it should work without problem, however if working with a
disk-based web, root relative, is relative to what, C:\ or C:\My Document...

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Murray said:
Why would root relative, e.g.,

/images/image.jpg

not work?

--
Murray

Thomas A. Rowe said:
If want use JavaScript in a Shared Border or FP Include Page, the
JavaScript function must be place
between the <body> JavaScript function </body> and any links contained
with in the function must be
absolute URLs (http://www.domainname.com/images/image1.jpg, etc.), not
relative URLs
(../images/image1.jpg).

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

Michael said:
I see it now! You are right and the solve works! Question? Since this
is a
shared border effect, why can't I just get the top.htm file to work and
look
right?

I'm frustrated that I need to manually paste this into every page (more
than
100 on my site!).

THanks again!

Michael

:

On the home page, this line -

<b onmouseover="openMenu('cellula')"><font face="Verdana">

calls the openMenu() javascript function, which is right here in the
head of
the document -

function openMenu(){
var a=arguments,o,s,l,m,c,t,p,r;
if(document.menuOpen){
if ((o=FP_getObjectByID(document.menuOpen))!=null){
s=(document.layers)?o:blush:.style;
s.visibility=(document.layers)?'hide':'hidden';document.menuOpen=false;}
if ((c=FP_getObjectByID('closer'))!=null){
t=(document.layers)?c:c.style;
t.visibility=(document.layers)?'hide':'hidden';}}
if ((l=FP_getObjectByID(a[0]))!=null){
m=(document.layers)?l:l.style;
m.visibility=(document.layers)?'show':'visible';document.menuOpen=a[0];}
if ((p=FP_getObjectByID('closer'))!=null){
r=(document.layers)?p:p.style;r.visibility=(document.layers)?'show':'visible';}
}
// -->
</script>
<meta name="Microsoft Border" content="tlb, default">
</head>

While on the interior pages, that function (as well as others) is
missing
from the head of the document. This is why your menu is not working -
the
required js is not there. This is why the error message you are
getting is
"object expected". The browser looked for the function called
openMenu()
and couldn't find it.

The solution is to make sure that the head region of your interior
pages
looks just like the head region of your home page with regard to the js
function definitions.

--
Murray

Ok, I've posted it at www.missioneperte.it (all in Italian but you
can see
the nav bar clearly enough). It all works on the
www.missioneperte.it/index.html page but the drop downs fail on all
other
pages. What do you think?

:

9 times out of 10 (I thought about making it 9.5 times but worried
about
how
to count that half time) this error means that there is some
javascript
function being called that is not present on the page.

Can you show me your page?

--
Murray

I've created a DHTML drop down menu which I have placed in my
shared
upper
border. It works fine with drop downs on the index.htm but gives
an
error
on all other pages and the drop downs don't work.
The error, which only occurs on the page when I mouse-over the
drop
down
menu, is "Object Expected" for line 27 character 2. [Buy line 27
is
different on all of these pages.]
Any ideas?
 
M

Murray

I get it. This is a major difference between Dreamweaver (which is very
*site* focused) and FP, which is much 'looser' about the site. In DW, every
site is defined to have a root level, hence the frequent use of 'root
relative links'. I take it that in FP this is not necessarily the case....

--
Murray

Thomas A. Rowe said:
If working on the live/remote site, then it should work without problem,
however if working with a
disk-based web, root relative, is relative to what, C:\ or C:\My
Document...

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Murray said:
Why would root relative, e.g.,

/images/image.jpg

not work?

--
Murray

Thomas A. Rowe said:
If want use JavaScript in a Shared Border or FP Include Page, the
JavaScript function must be place
between the <body> JavaScript function </body> and any links contained
with in the function must be
absolute URLs (http://www.domainname.com/images/image1.jpg, etc.), not
relative URLs
(../images/image1.jpg).

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

I see it now! You are right and the solve works! Question? Since
this
is a
shared border effect, why can't I just get the top.htm file to work
and
look
right?

I'm frustrated that I need to manually paste this into every page
(more
than
100 on my site!).

THanks again!

Michael

:

On the home page, this line -

<b onmouseover="openMenu('cellula')"><font face="Verdana">

calls the openMenu() javascript function, which is right here in the
head of
the document -

function openMenu(){
var a=arguments,o,s,l,m,c,t,p,r;
if(document.menuOpen){
if ((o=FP_getObjectByID(document.menuOpen))!=null){
s=(document.layers)?o:blush:.style;
s.visibility=(document.layers)?'hide':'hidden';document.menuOpen=false;}
if ((c=FP_getObjectByID('closer'))!=null){
t=(document.layers)?c:c.style;
t.visibility=(document.layers)?'hide':'hidden';}}
if ((l=FP_getObjectByID(a[0]))!=null){
m=(document.layers)?l:l.style;
m.visibility=(document.layers)?'show':'visible';document.menuOpen=a[0];}
if ((p=FP_getObjectByID('closer'))!=null){
r=(document.layers)?p:p.style;r.visibility=(document.layers)?'show':'visible';}
}
// -->
</script>
<meta name="Microsoft Border" content="tlb, default">
</head>

While on the interior pages, that function (as well as others) is
missing
from the head of the document. This is why your menu is not
working -
the
required js is not there. This is why the error message you are
getting is
"object expected". The browser looked for the function called
openMenu()
and couldn't find it.

The solution is to make sure that the head region of your interior
pages
looks just like the head region of your home page with regard to the
js
function definitions.

--
Murray

Ok, I've posted it at www.missioneperte.it (all in Italian but you
can see
the nav bar clearly enough). It all works on the
www.missioneperte.it/index.html page but the drop downs fail on
all
other
pages. What do you think?

:

9 times out of 10 (I thought about making it 9.5 times but
worried
about
how
to count that half time) this error means that there is some
javascript
function being called that is not present on the page.

Can you show me your page?

--
Murray

I've created a DHTML drop down menu which I have placed in my
shared
upper
border. It works fine with drop downs on the index.htm but
gives
an
error
on all other pages and the drop downs don't work.
The error, which only occurs on the page when I mouse-over the
drop
down
menu, is "Object Expected" for line 27 character 2. [Buy line
27
is
different on all of these pages.]
Any ideas?
 
T

Thomas A. Rowe

I think both application do the same thing, just that FP is designed to work with relative links
(../) from the folder that is defined as the FP web / site, which is why users should always have a
web / site open and not just a page and import all externally created content prior to using

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Murray said:
I get it. This is a major difference between Dreamweaver (which is very
*site* focused) and FP, which is much 'looser' about the site. In DW, every
site is defined to have a root level, hence the frequent use of 'root
relative links'. I take it that in FP this is not necessarily the case....

--
Murray

Thomas A. Rowe said:
If working on the live/remote site, then it should work without problem,
however if working with a
disk-based web, root relative, is relative to what, C:\ or C:\My
Document...

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

Murray said:
Why would root relative, e.g.,

/images/image.jpg

not work?

--
Murray

If want use JavaScript in a Shared Border or FP Include Page, the
JavaScript function must be place
between the <body> JavaScript function </body> and any links contained
with in the function must be
absolute URLs (http://www.domainname.com/images/image1.jpg, etc.), not
relative URLs
(../images/image1.jpg).

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

I see it now! You are right and the solve works! Question? Since
this
is a
shared border effect, why can't I just get the top.htm file to work
and
look
right?

I'm frustrated that I need to manually paste this into every page
(more
than
100 on my site!).

THanks again!

Michael

:

On the home page, this line -

<b onmouseover="openMenu('cellula')"><font face="Verdana">

calls the openMenu() javascript function, which is right here in the
head of
the document -

function openMenu(){
var a=arguments,o,s,l,m,c,t,p,r;
if(document.menuOpen){
if ((o=FP_getObjectByID(document.menuOpen))!=null){
s=(document.layers)?o:blush:.style;
s.visibility=(document.layers)?'hide':'hidden';document.menuOpen=false;}
if ((c=FP_getObjectByID('closer'))!=null){
t=(document.layers)?c:c.style;
t.visibility=(document.layers)?'hide':'hidden';}}
if ((l=FP_getObjectByID(a[0]))!=null){
m=(document.layers)?l:l.style;
m.visibility=(document.layers)?'show':'visible';document.menuOpen=a[0];}
if ((p=FP_getObjectByID('closer'))!=null){
r=(document.layers)?p:p.style;r.visibility=(document.layers)?'show':'visible';}
}
// -->
</script>
<meta name="Microsoft Border" content="tlb, default">
</head>

While on the interior pages, that function (as well as others) is
missing
from the head of the document. This is why your menu is not
working -
the
required js is not there. This is why the error message you are
getting is
"object expected". The browser looked for the function called
openMenu()
and couldn't find it.

The solution is to make sure that the head region of your interior
pages
looks just like the head region of your home page with regard to the
js
function definitions.

--
Murray

Ok, I've posted it at www.missioneperte.it (all in Italian but you
can see
the nav bar clearly enough). It all works on the
www.missioneperte.it/index.html page but the drop downs fail on
all
other
pages. What do you think?

:

9 times out of 10 (I thought about making it 9.5 times but
worried
about
how
to count that half time) this error means that there is some
javascript
function being called that is not present on the page.

Can you show me your page?

--
Murray

I've created a DHTML drop down menu which I have placed in my
shared
upper
border. It works fine with drop downs on the index.htm but
gives
an
error
on all other pages and the drop downs don't work.
The error, which only occurs on the page when I mouse-over the
drop
down
menu, is "Object Expected" for line 27 character 2. [Buy line
27
is
different on all of these pages.]
Any ideas?
 

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