JavaScripts Conflick

  • Thread starter Thread starter JCO
  • Start date Start date
J

JCO

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
 
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.
==============================================
 
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
 
Even though they may be separate external .js files, if they contain function names that
are the same they will conflict.
You need to rename the functions in one of the scripts.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
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.
==============================================
 
I will look it over. I guess, being a C++ programmer, I was under the
impression that each JavaScript contains private data & variables.
Variables that are private to one script cannot be seen by the other script.
 
In javascript, identical function names will conflict as will identical "Global"
variables.
However, iirc variables declared "within" a function will not.

You would think that if the source files had different names, that they would run in
separate memory spaces, but it seems javascript doesn't work that way.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
Yes the function calls are unique.
I have not found global variables that have same name.. Yet!
 
By any chance are you calling the main functions for the scripts using onload="function()" in the
opening body tag??
If so, you can only use one onload= but you can call two functions with it like this:

onload="function1(); function2()"

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
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;"
--




| 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
| > >> >
| > >> >
| > >>
| > >>
| > >
| > >
| >
| >
|
|
 
I'm not sure how to answer this question. I did not write the Scripts
myself.
The ScrollingMeasage.js has a call as shown:
window.onload=populate

The translucentscroller.js has a call as shown:
window.onload=startit

My homepage html has an OnLoad= in it but neither of these function (above)
are there.
 
I don't think so (-;
Still missing proper body tags and ends with
</body></html>&nbsp;</html>

Validate your page
--




| 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
| > | > >> >
| > | > >> >
| > | > >>
| > | > >>
| > | > >
| > | > >
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
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.

Stefan B Rusynko said:
I don't think so (-;
Still missing proper body tags and ends with
</body></html>&nbsp;</html>

Validate your page
--




| 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
| > | > >> >
| > | > >> >
| > | > >>
| > | > >>
| > | > >
| > | > >
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
Do you know how to validate a page
- your html is still invalid and missing a valid <Body> tag after </head>

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
| > | > | > >> >
| > | > | > >> >
| > | > | > >>
| > | > | > >>
| > | > | > >
| > | > | > >
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
I was just going to ask you that question.
Thanks, I will review how to validate the page. I'm using FP 2003

Stefan B Rusynko said:
Do you know how to validate a page
- your html is still invalid and missing a valid <Body> tag after </head>

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
| > | > | > >> >
| > | > | > >> >
| > | > | > >>
| > | > | > >>
| > | > | > >
| > | > | > >
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
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 </head>

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
| > | > | > >> >
| > | > | > >> >
| > | > | > >>
| > | > | > >>
| > | > | > >
| > | > | > >
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
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 </head>

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
| > | > | > >> >
| > | > | > >> >
| > | > | > >>
| > | > | > >>
| > | > | > >
| > | > | > >
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
Compatibility is now okay but I still have the same problem with the two
scrollers. If I correct the spelling of the one at the bottom of the page,
it will work correctly but the top scroller will quit working.

This is still the main issue that I need to resolve. Meanwhile, I will fix
the compatibility of all pages.


Stefan B Rusynko said:
Do you know how to validate a page
- your html is still invalid and missing a valid <Body> tag after </head>

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
| > | > | > >> >
| > | > | > >> >
| > | > | > >>
| > | > | > >>
| > | > | > >
| > | > | > >
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
Thanks I did fix that. I understand to. My real question what that I did
not know how it got that way. I did not write the code that way, it had to
be generated itself. Anyway, I fix it.

Thanks again.

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
| > | > | > >> >
| > | > | > >> >
| > | > | > >>
| > | > | > >>
| > | > | > >
| > | > | > >
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 

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