FP03 Interactive Buttons and Incl pg problem

D

DMc

Hi all,
I know your answer will be the thing I didn't try and I will shriek at my
own "duh!"
but...
I made FP2003 interactive buttons on a page and used it as an include page
for my site's navigation saving it in the root dir. I saved my buttons first
to a button folder, and then to the root but the problem persists.

The problem is when a subdirectory of the page pulls up the include page the
buttons work ok in preview but show up as missing graphics, or missing until
you roll over them, in preview through the browser.

I believe it has something to do with the button graphics being in one
folder and the include page in another and it's all working with both
directory levels? But I am not finding the right combo to get them to work
on all levels from the one include path.

I would treasure some advice. Thank you in advance!!
Deb
 
D

David Berry

If you want to keep the buttons in a different folder then you need to
switch to code view and modify the script so the image path is correct. For
example, /images/buttons
 
D

DMc

Thanks, but the buttons are saved into the folder "buttons" that I sent them
into when first closing the page. And the include page that calls them up
works fine as long as it is used in the root dir. But if I put the button
include page on a sub folder page then the buttons work in the local preview
mode but not in the preview in browser view or on the remote web site.

I think! maybe the html page (b) using the include page (a) that's holding
the buttons need to be on the same directory level as the html page (b) ?

There must be "tip" for keeping the buttons working anywhere in the site, no
matter where they or the include page resides.

Thanks, Deb
 
T

Thomas A. Rowe

The issue is that the JavaScript code must be inserted between the
<body>...</body> tags of the page to be included in other pages or the
JavaScript code must be insert into the head section of all pages using the
included content. You may also need to use absolute link to the images and
pages.

--

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

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

Ronx

In general, Interactive buttons should not be used in include files or
shared borders since the JavaScript associated with them does not always go
into the pages correctly. See www.rxs-enterprises.com/tests/buttons/ for an
example (the example uses shared borders, but applies to includes as well)
of how this can be done, and the severe restrictions you have to put up
with.
Use Dynamic Web Templates instead of includes.
 
D

D McClellan

Hi and thank you all for the advice. It seems I have two possible solutions.
Copying the java code I expected but couldn't come up with what to copy
where, so that helped a lot.

The Dynamic web template ... I am going though Paul Colligan's book to learn
and hum...

Isn't the dwt something best used *before* a detailed site is built and
set in concrete? I am only wrestling with one left sided navigation cell in
a large established table that contains the include page of nav buttons.

Tell me if I am wrong, but to me it looks like if I attach the dwt that
contains the table of nav buttons it is going to throw off my entire page
foundation. Can I attach it to just a cell? That would be cool. :)

I am going to look around here about dwt and try to learn more and if anyone
would like to take the time to tell me if it is a good idea to attach a dwt
for the replacement of a cell that contain included content and briefly how
best to do it, you will be treasured forever. I'll name my next subweb after
you - haha

Thanks!!
Deb
 
J

Jim Cheshire

Hi Deb,

A Dynamic Web Template cannot be attached to part of a page. It's all or
nothing.

If you have an existing table and you attach a DWT to that page, you will
get the "Choose Editable Regions for Content" dialog. If the page you are
attaching the DWT to does not contain any editable regions (and it likely
won't), you will have to choose which editable region in the DWT you want to
contain that content.

--
Jim Cheshire
Jimco Add-ins
http://www.jimcoaddins.com
===================================
Co-author of Special Edition
Using Microsoft FrontPage 2003
Order it today!
http://sefp2003.frontpagelink.com



D McClellan said:
Hi and thank you all for the advice. It seems I have two possible solutions.
Copying the java code I expected but couldn't come up with what to copy
where, so that helped a lot.

The Dynamic web template ... I am going though Paul Colligan's book to learn
and hum...

Isn't the dwt something best used *before* a detailed site is built and
set in concrete? I am only wrestling with one left sided navigation cell in
a large established table that contains the include page of nav buttons.

Tell me if I am wrong, but to me it looks like if I attach the dwt that
contains the table of nav buttons it is going to throw off my entire page
foundation. Can I attach it to just a cell? That would be cool. :)

I am going to look around here about dwt and try to learn more and if anyone
would like to take the time to tell me if it is a good idea to attach a dwt
for the replacement of a cell that contain included content and briefly how
best to do it, you will be treasured forever. I'll name my next subweb after
you - haha

Thanks!!
Deb




Ronx said:
In general, Interactive buttons should not be used in include files or
shared borders since the JavaScript associated with them does not always go
into the pages correctly. See www.rxs-enterprises.com/tests/buttons/
for
an
example (the example uses shared borders, but applies to includes as well)
of how this can be done, and the severe restrictions you have to put up
with.
Use Dynamic Web Templates instead of includes.

--
Ron

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


sent
them
(b)
 
H

Harry

I had the same problem. So what I did was create two include pages one with a
home button and one without. The one without was for the home page and any
page in the root. The other page was for those pages in sub-folders. I had to
adjust the path to the images manually to show the correct path from the
sub-folder.

Anyway that is one work around.

Harry
 
S

Stefan B Rusynko

But in both cases, you still need to copy the script from the HEAD section to all pages that use the includes




| I had the same problem. So what I did was create two include pages one with a
| home button and one without. The one without was for the home page and any
| page in the root. The other page was for those pages in sub-folders. I had to
| adjust the path to the images manually to show the correct path from the
| sub-folder.
|
| Anyway that is one work around.
|
| Harry
|
|
 
D

D McClellan

I am finding out that you are right, DWT is the way to go on this. Soon as I
am comfortable with what I'm doing I will love this knowledge.
Thank you again for the sugestion.!!
Deb Mc


Stefan B Rusynko said:
But in both cases, you still need to copy the script from the HEAD section
to all pages that use the includes
 

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