JavaScripts Conflick

  • Thread starter Thread starter JCO
  • Start date Start date
Is there anyway of changing the Compatibility Test for Browser Version 6.0?

I keep getting all of these Layer Errors.... and quite frankly, I don't
think they are errors. It also complains about the fact that I have a
script written after the <head> tag. This should not be an issue.

Murray said:
1st error message means you have this structure -

<div...><body>

and that's illegal.

2nd error message means you have this structure -

<html><div>

and that's illegal.

The tree of a valid HTML page would be -

<html>
<head>
</head>
<body>
</body>
</html>

All HTML markup (except for <title>, <meta> and comments) should be between
<body> and </body>.

--
Murray
============

JCO said:
I'm working the issues but I don't understand how to fix:

Line 34: In Internet Explorer 5.0 the tag <DIV> cannot contain a tag
<BODY>.
Line 33: In Internet Explorer 5.0 the tag <HTML> cannot contain a tag
<DIV>.

It seems that these really shouldn't be an issue! Right?
This issue is on every page.


Stefan B Rusynko said:
Do you know how to validate a page
- your html is still invalid and missing a valid <Body> tag after
Suggest you visit the single page validator at http://www2.imagiware.com/RxHTML/

Or in FP 2003 open the page and run Tools Browser Compatibility for an
inkling of what is wrong w/ the home page
--




| Ouch! Wonder what did that. That should be fixed now.
|
| Of coursed I renamed the Script call TranslucentScroller.js to
| TranslucentScrollerXX.js to make in incorrect. If I correct the spelling,
| it will work and the scroll at the top will not. Still can't find the
| conflict.
|
| | > I don't think so (-;
| > Still missing proper body tags and ends with
| > </body></html>&nbsp;</html>
| >
| > Validate your page
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| | > | Thanks, these changes were made.
| > | I'm still trying to figure out Steve's question (above post).
| > |
| > | | > | > Your html is badly mangled
| > | > The <body> tag is half way down the page
| > | > the onload in it is incorrect
| > | > onLoad=" focus() startBlink()"
| > | > should be
| > | > onLoad="focus(); startBlink();"
| > | >
| > | > The oncontextmenu="return false" ondragstart="return false" (if you
| really
| > | need them) should be
| > | > oncontextmenu="return false;" ondragstart="return false;"
| > | > --
| > | >
| > | > _____________________________________________
| > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > | > "Warning - Using the F1 Key will not break anything!" (-;
| > | > To find the best Newsgroup for FrontPage support see:
| > | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > _____________________________________________
| > | >
| > | >
| > | | > | > | Yes the function calls are unique.
| > | > | I have not found global variables that have same name.. Yet!
| > | > |
| > | > |
| > | > | | > | > | > But are the actual function calls named uniquely?
| > | > | >
| > | > | > --
| > | > | > ==============================================
| > | > | > 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
| > | > | >
| > | > | | > | > | > > Each script is separate and in a folder named "MyScripts".
| > | > | > >
| > | > | > > Top of page, I call:
| > | > | > > MyScripts/TranslucentScroller.js
| > | > | > >
| > | > | > > Bottom of page, I call:
| > | > | > > MyScripts/ScrollingMessages.js
| > | > | > >
| > | > | > >
| > | > | > > | > | > | > >> Yes you can, but you have give unique names to each
| > | script/functions
| > | > | > >>
| > | > | > >> --
| > | > | > >> ==============================================
| > | > | > >> 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
| > | > | > >>
| > | > | > > | > | > | > >> > Reference: http://dfwtejanos.com
| > | > | > >> >
| > | > | > >> > On my home page I had a scroller that has updated information
| for
| > | > | those
| > | > | > > to
| > | > | > >> > read. I was working on another scroller that I want
to
add
| along
| > | the
| > | > | > > side.
| > | > | > >> > When I added the second scroller, the first one stopped
| working.
| > | To
| > | > | > > verify,
| > | > | > >> > I turned the second one off (by misspelling the JavaScript
| file
| > | name)
| > | > | > > and
| > | > | > >> > the original one works again.
| > | > | > >> >
| > | > | > >> > Why is this?
| > | > | > >> > Can't I have both scrollers running at the same time (that
| calls
| > | two
| > | > | > >> > different JavaScripts?
| > | > | > >> >
| > | > | > >> > Thanks
| > | > | > >> >
| > | > | > >> >
| > | > | > >>
| > | > | > >>
| > | > | > >
| > | > | > >
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
For what it's worth -

1. Your include doesn't seem to be working -

</head>

<!--webbot bot="Include" U-Include="IncludeItems/top.htm" TAG="BODY"
startspan -->
<div align="center">

As a result, you have no body tag on the page where it should be (below
</head>).

2. Your scripts have been inserted into a table cell -

<td align="center">

<script src="IncludeItems/TejanosMenu/xaramenu.js"></script><script
menumaker src="IncludeItems/TejanosMenu/tejanosmenu.js"></script>

This is functionally equivalent to placing layers into table cells, and
that's going to get you into trouble. These menu scripts (that second one
contains an invalid attribute "menumaker") are normally placed flat on the
page outside of any container other than <body></body> to avoid such
problems.

3. Below that, you have another include which *is* working, and it's
bringing a <body> tag into the middle of your page -

</div>

<!--webbot bot="Include" i-checksum="63563" endspan --><body topmargin="0"
leftmargin="0" link="#FAD734" vlink="#FAD734" alink="#00FF00" onLoad="
focus(); startBlink();" text="#FFFFFF" style="text-align: left"

That is not a good place to have the body tag.

4. Since both your menus and the scrolling areas are heavily javascript
dependent, I will see nothing there at all if I come to your site with
javascript disabled (both the menu and the scroller completely vanish).
When your menu is disabled like that, I can't navigate your site.

5. Again, because your menu system is all javascript embedded, a search
engine will have a hard time trying to find your pages. You may be
interested in this link -

http://tinyurl.com/4vgsc

that shows you how your page (and its 4 visible links) will appear to a
search engine.

I think you are between a rock and a hard place here. The page is clearly
broken as it is....

--
Murray
============

JCO said:
Is there anyway of changing the Compatibility Test for Browser Version
6.0?

I keep getting all of these Layer Errors.... and quite frankly, I don't
think they are errors. It also complains about the fact that I have a
script written after the <head> tag. This should not be an issue.

Murray said:
1st error message means you have this structure -

<div...><body>

and that's illegal.

2nd error message means you have this structure -

<html><div>

and that's illegal.

The tree of a valid HTML page would be -

<html>
<head>
</head>
<body>
</body>
</html>

All HTML markup (except for <title>, <meta> and comments) should be between
<body> and </body>.

--
Murray
============

JCO said:
I'm working the issues but I don't understand how to fix:

Line 34: In Internet Explorer 5.0 the tag <DIV> cannot contain a tag
<BODY>.
Line 33: In Internet Explorer 5.0 the tag <HTML> cannot contain a tag
<DIV>.

It seems that these really shouldn't be an issue! Right?
This issue is on every page.


Do you know how to validate a page
- your html is still invalid and missing a valid <Body> tag after
Suggest you visit the single page validator at
http://www2.imagiware.com/RxHTML/

Or in FP 2003 open the page and run Tools Browser Compatibility for an
inkling of what is wrong w/ the home page

--




| Ouch! Wonder what did that. That should be fixed now.
|
| Of coursed I renamed the Script call TranslucentScroller.js to
| TranslucentScrollerXX.js to make in incorrect. If I correct the
spelling,
| it will work and the scroll at the top will not. Still can't find the
| conflict.
|
| | > I don't think so (-;
| > Still missing proper body tags and ends with
| > </body></html>&nbsp;</html>
| >
| > Validate your page
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| | > | Thanks, these changes were made.
| > | I'm still trying to figure out Steve's question (above post).
| > |
| > | | > | > Your html is badly mangled
| > | > The <body> tag is half way down the page
| > | > the onload in it is incorrect
| > | > onLoad=" focus() startBlink()"
| > | > should be
| > | > onLoad="focus(); startBlink();"
| > | >
| > | > The oncontextmenu="return false" ondragstart="return false"
(if
you
| really
| > | need them) should be
| > | > oncontextmenu="return false;" ondragstart="return false;"
| > | > --
| > | >
| > | > _____________________________________________
| > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > | > "Warning - Using the F1 Key will not break anything!" (-;
| > | > To find the best Newsgroup for FrontPage support see:
| > | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > _____________________________________________
| > | >
| > | >
| > | | > | > | Yes the function calls are unique.
| > | > | I have not found global variables that have same name.. Yet!
| > | > |
| > | > |
| > | > | | > | > | > But are the actual function calls named uniquely?
| > | > | >
| > | > | > --
| > | > | > ==============================================
| > | > | > 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
| > | > | >
| > | > | | > | > | > > Each script is separate and in a folder named "MyScripts".
| > | > | > >
| > | > | > > Top of page, I call:
| > | > | > > MyScripts/TranslucentScroller.js
| > | > | > >
| > | > | > > Bottom of page, I call:
| > | > | > > MyScripts/ScrollingMessages.js
| > | > | > >
| > | > | > >
| > | > | > > | > | > | > >> Yes you can, but you have give unique names to each
| > | script/functions
| > | > | > >>
| > | > | > >> --
| > | > | > >> ==============================================
| > | > | > >> 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
| > | > | > >>
| > | > | > > | > | > | > >> > Reference: http://dfwtejanos.com
| > | > | > >> >
| > | > | > >> > On my home page I had a scroller that has updated
information
| for
| > | > | those
| > | > | > > to
| > | > | > >> > read. I was working on another scroller that I want to
add
| along
| > | the
| > | > | > > side.
| > | > | > >> > When I added the second scroller, the first one stopped
| working.
| > | To
| > | > | > > verify,
| > | > | > >> > I turned the second one off (by misspelling the
JavaScript
| file
| > | name)
| > | > | > > and
| > | > | > >> > the original one works again.
| > | > | > >> >
| > | > | > >> > Why is this?
| > | > | > >> > Can't I have both scrollers running at the same time
(that
| calls
| > | two
| > | > | > >> > different JavaScripts?
| > | > | > >> >
| > | > | > >> > Thanks
| > | > | > >> >
| > | > | > >> >
| > | > | > >>
| > | > | > >>
| > | > | > >
| > | > | > >
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 

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

Back
Top