Interactive Button Runtime Error

J

Jody

I just upgraded to FP2003 and am using the Interactive
Buttons. On a new site I just finished the following
error message is displayed when hovering over each
button. All reporting a different line respectively:

"A Runtime Error has occurred. Do you wish to debug?
Line: 39
Error: Ojbect expected"
and there are buttons for Yes and No

I have run the debugger and do not see anything that jumps
out at me in the code that could be causing this.

I can suppress the errors with the browser settings but I
can not control these settings for all visitors so, we
need to resolve this at the root level.

Is this something new to FP2003 or what?

If you want to check out this behavior, UNCheck
the "Disable Script Debugging" in your Advanced browser
settings, refres IE and then and visit:
www.reptileconservationresources.com

Thanks,
Jody
 
M

MD Websunlimited

Hi Jody,

The scripts used to implement the onmouseover are not in the source. To correct, delete and reapply the button behaviors.
 
S

Stefan B Rusynko

You have applied the Interactive buttons in a shared border - not supported
( the scripts and Body onload commands from the top.htm shared border page need to be copied to all pages that use the shared
border - with the paths adjusted)

Instead of shared borders (or include pages) you should look at Dynamic Web Templates for use w/ the Interactive Buttons




| I just upgraded to FP2003 and am using the Interactive
| Buttons. On a new site I just finished the following
| error message is displayed when hovering over each
| button. All reporting a different line respectively:
|
| "A Runtime Error has occurred. Do you wish to debug?
| Line: 39
| Error: Ojbect expected"
| and there are buttons for Yes and No
|
| I have run the debugger and do not see anything that jumps
| out at me in the code that could be causing this.
|
| I can suppress the errors with the browser settings but I
| can not control these settings for all visitors so, we
| need to resolve this at the root level.
|
| Is this something new to FP2003 or what?
|
| If you want to check out this behavior, UNCheck
| the "Disable Script Debugging" in your Advanced browser
| settings, refres IE and then and visit:
| www.reptileconservationresources.com
|
| Thanks,
| Jody
|
 
M

Mike Best

I am not sure what the problem is but if you are using the include feature
included in FP and it won't work try this.

Since your pages are .asp you can manually put include files into the HTML
that look like this:
<!--#include file='footerMenu.asp'-->
Just click the "HTML" tab at the bottom and find the place where you want it
located at. I suggest you type something in the page like "myFooter" and use
the Replace command to find the exact spot where you want the footer to
appear.




JerCro said:
I hate beating this dead horse, but....
I'm still not certain about the resolve of this problem. I created a
menubar using a table and inserted interactive buttons into each cell. Then
named the file footer.htm and used it as an include for each page that I
wanted the menubar on. This works fine on some pages, but on others it
causes the runtime errors and the button don't do the mouseover or
mousedown, or else doesn't show any icons at all for those buttons. I've
rebuilt the menubar a couple of times trying to get it all right, but still
get the same thing. And it gets worse if I switch to a page in a different
directory.
Question: Are you saying that you cannot use this feature on an "include"
page? And if not, why does it work on some pages and not on others? Do I
need to build the menu bar and just copy it page to page? I tried that also
and it seemed to make things worse, either wanting to create new buttons for
each page or not work at all. Would it make a difference if I saved the
footer include page to each directory, leaving the buttons in their own
directory?
 
T

Thomas A. Rowe

The IB will not work in shared border or include page.

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

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


JerCro said:
I hate beating this dead horse, but....
I'm still not certain about the resolve of this problem. I created a menubar using a table and
inserted interactive buttons into each cell. Then named the file footer.htm and used it as an
include for each page that I wanted the menubar on. This works fine on some pages, but on others it
causes the runtime errors and the button don't do the mouseover or mousedown, or else doesn't show
any icons at all for those buttons. I've rebuilt the menubar a couple of times trying to get it all
right, but still get the same thing. And it gets worse if I switch to a page in a different
directory.
Question: Are you saying that you cannot use this feature on an "include" page? And if not, why
does it work on some pages and not on others? Do I need to build the menu bar and just copy it page
to page? I tried that also and it seemed to make things worse, either wanting to create new buttons
for each page or not work at all. Would it make a difference if I saved the footer include page to
each directory, leaving the buttons in their own directory?
 
R

Ronx

See www.rxs-enterprises.com/fp/b/buttons/ which shows how IBs in include
buttons can be made to work, and where they don't. Dynamic web Templates
are the better option.

Ron
--
Reply only to group - emails will be deleted unread.


JerCro said:
I hate beating this dead horse, but....
I'm still not certain about the resolve of this problem. I created a
menubar using a table and inserted interactive buttons into each cell. Then
named the file footer.htm and used it as an include for each page that I
wanted the menubar on. This works fine on some pages, but on others it
causes the runtime errors and the button don't do the mouseover or
mousedown, or else doesn't show any icons at all for those buttons. I've
rebuilt the menubar a couple of times trying to get it all right, but still
get the same thing. And it gets worse if I switch to a page in a different
directory.
Question: Are you saying that you cannot use this feature on an "include"
page? And if not, why does it work on some pages and not on others? Do I
need to build the menu bar and just copy it page to page? I tried that also
and it seemed to make things worse, either wanting to create new buttons for
each page or not work at all. Would it make a difference if I saved the
footer include page to each directory, leaving the buttons in their own
directory?
 
J

JerCro

Thanks, Ronx.
I checked it out, but could not find a solution to the problem I was having. Finally gave up on the Interactive Menu buttons for pages outside of the root directory. Works fine there. Went to a FP Navigation bar for the rest, works better, but still haveing one problem with lost file name. One menu item keeps droping the directory and reverting to the root directory. Its a double include, I.E. an include page inside an include page. And it says it is using the right url, but when you click the link it reverts to the root directory. No big deal, because it only affects the page that it is currently on. All the links work except the one for the current page.
 
J

JerCro

Thanks, Mike. I had already tried that and it didn't work any better than the FP Web bot. Also see post below.
 

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