Flash/Javascript errors in FP2003

T

T.J. Warner

Here's the dilemma. I have shared borders at the top and left side of
my site. I added a flash component to the top shared border. I wanted
to add (under where the flash shows) a separate navigational bar.

I tried it in two ways: 1) I set up a table after the included flash
file. That works, but I'd like it to be enhanced a bit.

I checked around for some menus in javascript, and found one that I
liked. It has me add some html to the head section as well as some to
the body. I followed the directions and added them where necessary (to
my top.htm file).

Problem is, when I save the files, the menu doesn't display. This has
happened with a few menus that I've tried. I'm not generating any
errors, it just "ignores" the menus when I try with a browser.

Is there something preventing a JS menu and flash component from being
displayed within the same shared border? If so, is there a way around it?

As I followed each menu's instructions (about 5 or 7), I'm stumped as to
why the flash (which is in a table of it's own) and these menus can't
coexist in the same border.

TIA!
 
T

Thomas A. Rowe

When you use shared borders or FP include pages only the content that is between the:

<body>...your content to be included</body>

is included in other pages, so the JS that needs to be in the head section must be inserted into all
pages that would be using the shared border or FP include pages.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

T.J. Warner

Thanks. I tried this (I included the following in both index.htm,
top.htm and left.htm) within the <HEAD> and </HEAD> portions:

<script type="text/javascript" src="includes/browser.js">

/***********************************************
* Jim's DHTML Menu v5.7- © Jim Salyer ([email protected])
* Visit Dynamic Drive: http://www.dynamicdrive.com for script and
instructions
* This notice must stay intact for use
***********************************************/

</script>
<script type="text/javascript" src="config.js"></script>

In the body of top.htm is the line: <body onload="init()">

The author states that it's the startup code. The configuration files
are all in place. I do have more pages than just the three listed
above, but I'm not scrolling through any, so I figured placing that code
in just those three should allow the menu in the just the home page,
correct?

Unfortunately, it's not starting. If I include the above text in an
html file all by itself, it does call up the menu properly, so I know
that the menu configuration's are OK, but there must be something I'm
missing??

Thanks!
 
T

Thomas A. Rowe

When placed in the head section or a body onload attribute is added to the body tag, it must be on
all pages where the top.htm or left.htm will be included. If placed in top.htm or left.htm in the
head section or the body tag, it will be ignored.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

T.J. Warner

Hi Thomas,

Maybe I didn't understand you, but I think I did what you said. In the
head section, I added the Javascript information (see below). I did
that in the top.htm, left.htm and index.htm files.

Within the <BODY> section of ONLY the top.htm, I added the onload
command (see below) as that's where I wanted the navigation bar to appear.

Wouldn't that be correct? or am I missing something?
Thanks...
 
S

Stefan B Rusynko

No
The BODY onload needs to be in all the pages that use the script (like index.htm)
(not needed in the include or shared border pages top & left)




| Hi Thomas,
|
| Maybe I didn't understand you, but I think I did what you said. In the
| head section, I added the Javascript information (see below). I did
| that in the top.htm, left.htm and index.htm files.
|
| Within the <BODY> section of ONLY the top.htm, I added the onload
| command (see below) as that's where I wanted the navigation bar to appear.
|
| Wouldn't that be correct? or am I missing something?
| Thanks...
|
|
| Thomas A. Rowe wrote:
| > When placed in the head section or a body onload attribute is added to the body tag, it must be on
| > all pages where the top.htm or left.htm will be included. If placed in top.htm or left.htm in the
| > head section or the body tag, it will be ignored.
| >
| |
| >> Thanks. I tried this (I included the following in both index.htm,
| top.htm and left.htm) within
| >> the <HEAD> and </HEAD> portions:
| >>
| >> <script type="text/javascript" src="includes/browser.js">
| >>
| >> /***********************************************
| >> * Jim's DHTML Menu v5.7- © Jim Salyer ([email protected])
| >> * Visit Dynamic Drive: http://www.dynamicdrive.com for script and
| instructions
| >> * This notice must stay intact for use
| >> ***********************************************/
| >>
| >> </script>
| >> <script type="text/javascript" src="config.js"></script>
| >>
| >> In the body of top.htm is the line: <body onload="init()">
| >>
| >> The author states that it's the startup code. The configuration
| files are all in place. I do
| >> have more pages than just the three listed above, but I'm not
| scrolling through any, so I figured
| >> placing that code in just those three should allow the menu in the
| just the home page, correct?
| >>
| >> Unfortunately, it's not starting. If I include the above text in an
| html file all by itself, it
| >> does call up the menu properly, so I know that the menu
| configuration's are OK, but there must be
| >> something I'm missing??
| >>
| >> Thanks!
| >>
| >> Thomas A. Rowe wrote:
| >
| >>>> When you use shared borders or FP include pages only the content
| that is between the:
| >>>>
| >>>> <body>...your content to be included</body>
| >>>>
| >>>> is included in other pages, so the JS that needs to be in the head
| section must be inserted into
| >>>> all pages that would be using the shared border or FP include pages.
| >>>>
 
T

T.J. Warner

Stefan,

Yep. I'm definitely confused then. Before, someone told me to put all
things in the HEAD into all pages as it's not carried over in shared
borders. They said that the BODY was carried over in shared borders.

So, I'm back to square one, I guess as I don't understand what is going
where.

The actual Javascript "initialization" goes in the HEAD according to the
author. And the onload goes into the body. I got that. :)

However, with shared borders, I did as you suggested -- I put the onload
in the BODY of the index.htm file only (that's the only page I'm working
with now) and not the top or left htm file. However, am I then putting
the HEAD portion in ALL the pages? I tried putting it into top and it
didn't work, so I must be doing something wrong.

Thanks and sorry for the confusion.
No
The BODY onload needs to be in all the pages that use the script (like index.htm)
(not needed in the include or shared border pages top & left)
| Hi Thomas,
|
| Maybe I didn't understand you, but I think I did what you said. In the
| head section, I added the Javascript information (see below). I did
| that in the top.htm, left.htm and index.htm files.
|
| Within the <BODY> section of ONLY the top.htm, I added the onload
| command (see below) as that's where I wanted the navigation bar to appear.
|
| Wouldn't that be correct? or am I missing something?
| Thanks...
|
|
| Thomas A. Rowe wrote:
| > When placed in the head section or a body onload attribute is added
to the body tag, it must be on
| > all pages where the top.htm or left.htm will be included. If placed
in top.htm or left.htm in the
| > head section or the body tag, it will be ignored.
| >
| |
| >> Thanks. I tried this (I included the following in both index.htm,
| top.htm and left.htm) within
| >> the <HEAD> and </HEAD> portions:
| >>
| >> <script type="text/javascript" src="includes/browser.js">
| >>
| >> /***********************************************
| >> * Jim's DHTML Menu v5.7- © Jim Salyer ([email protected])
| >> * Visit Dynamic Drive: http://www.dynamicdrive.com for script and
| instructions
| >> * This notice must stay intact for use
| >> ***********************************************/
| >>
| >> </script>
| >> <script type="text/javascript" src="config.js"></script>
| >>
| >> In the body of top.htm is the line: <body onload="init()">
| >>
| >> The author states that it's the startup code. The configuration
| files are all in place. I do
| >> have more pages than just the three listed above, but I'm not
| scrolling through any, so I figured
| >> placing that code in just those three should allow the menu in the
| just the home page, correct?
| >>
| >> Unfortunately, it's not starting. If I include the above text in an
| html file all by itself, it
| >> does call up the menu properly, so I know that the menu
| configuration's are OK, but there must be
| >> something I'm missing??
| >>
| >> Thanks!
| >>
| >> Thomas A. Rowe wrote:
| >
| >>>> When you use shared borders or FP include pages only the content
| that is between the:
| >>>>
| >>>> <body>...your content to be included</body>
| >>>>
| >>>> is included in other pages, so the JS that needs to be in the head
| section must be inserted into
| >>>> all pages that would be using the shared border or FP include pages.
| >>>>
 
T

T.J. Warner

Oh... Sorry -- if you reply via email, I forgot that my email address is
automatically munged for spams... You can email me at
(e-mail address removed) (which is a correct addy)

Thanks..
 
T

Thomas A. Rowe

I told you that only the content that is between the <body>...</body> tags on the shared border or
FP include page is carried over to the other page. I never said that the content of the actual body
tag is carried over.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 

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