Re: No scroll bar for page + page error(s)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Brightbelt (anonymous_at_discussions.microsoft.com)
Date: 04/21/04


Date: Tue, 20 Apr 2004 20:28:43 -0700

Hi Jon & Thomas-
  In case you didn't see my message above, I did what Jon
suggested...ie, that the javascript in the head preloads
my images, so I don't need the onload="preload Images();"
in the body tag. I took it out and that did fix the
problem. Many, Many Thanks! ....Brightbelt

 
>-----Original Message-----
>Well -- I've tried but it still gives me an error
window.
>What I did was delete the javascript code in the heads
of
>all the pages and put it after the <body> tag on the
>Left.htm page. And it still doesn't fix the error. Just
>in case we're maybe mixing messages, here's the type of
>error window I get:
>
>Internet Explorer Script Error
>! An error has occurred in the script on this page
>Line: 21
>CHar: 1
>Error: Object Expected
>Code: 0
>Url: file://C:\Documents and Settings\Default\Local
>Settings\TemporaryInternetFiles\FrontpageTempDir\pvw5.htm
>
>I hope that helps somewhat. I'm at a loss. Like I said,
I
>deleted the javascript code from the heads of all the
>pages and put it after the <body> tag on
>Left.htm . ...Brightbelt
>
>
>>-----Original Message-----
>>#1 Yes
>>
>>#2 However if you already have it in the head section
of
>your pages you can either delete it from
>>those pages and leave it on the top.htm page but moved
>to appear after the <body> tag.
>>
>>You only need to be concerned with the JavaScript that
>is in the head section, and you should not
>>have the same exact script on a page more than once as
>the this will cause a conflict between the
>>two scripts.
>>
>>--
>>==============================================
>>Thomas A. Rowe (Microsoft MVP - FrontPage)
>>WEBMASTER Resources(tm)
>>http://www.ycoln-resources.com
>>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
>>
>>"Brightbelt" <anonymous@discussions.microsoft.com>
wrote
>in message
>>news:1bd401c42705$32426bb0$a401280a@phx.gbl...
>>> OK-
>>> Thanks I found the shared border page. Now, just to
>be
>>> certain, is the following the code you're saying
should
>>> be either in the head of all the pages or in the body
>of
>>> the share border page?
>>>
>>> <script language="JavaScript">
>>> <!-- hide this script from non-javascript-enabled
>browsers
>>>
>>> /* Functions that finds images. */
>>> function MM_findObj(n, d) { //v4.01
>>> var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))
>>> >0&&parent.frames.length) {
>>> d=parent.frames[n.substring(p+1)].document;
>>> n=n.substring(0,p);}
>>> if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!
>>> x&&i<d.forms.length;i++) x=d.forms[i][n];
>>> for(i=0;!x&&d.layers&&i<d.layers.length;i++)
>>> x=MM_findObj(n,d.layers[i].document);
>>> if(!x && d.getElementById) x=d.getElementById(n);
>>> return x;
>>> }
>>> /* Functions that swaps images. */
>>> function MM_swapImage() { //v3.0
>>> var i,j=0,x,a=MM_swapImage.arguments;
>>> document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
>>> if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]
>=x;
>>> if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
>>> }
>>> function MM_swapImgRestore() { //v3.0
>>> var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&
(x=a
>>> [i])&&x.oSrc;i++) x.src=x.oSrc;
>>> }
>>>
>>> // stop hiding -->
>>> </script>
>>>
>>> And more questions....as I already have this in the
>head
>>> of all my pages, can I also put it in the body of the
>>> shared border page ? You were saying either/or and I'm
>>> asking if I can do both, since the the above
javascript
>>> being in the head of all pages isn't working it seems.
>>> Are you talking about the javascript code table/list
of
>>> images ? That would be the following...
>>>
>>> <table border="0" cellpadding="0" cellspacing="0"
>>> width="145">
>>> <!-- fwtable fwsrc="D:\My Documents\My
>>> Picturesb\SilverPiano5.png" fwbase="Silverpiano5.jpg"
>>> fwstyle="FrontPage" fwdocid = "742308039"
>fwnested=""0" --
>>> >
>>> <script language="JavaScript">
>>> <!-- hide
>>> if (document.images) {
>>> fwcolorpiano5_r2_c2_f2 = new Image(109 ,25);
>>> fwcolorpiano5_r2_c2_f2.src
>= "fwcolorpiano5_r2_c2_f2.jpg";
>>> fwcolorpiano5_r2_c2_f1 = new Image(109 ,25);
>>> fwcolorpiano5_r2_c2_f1.src
= "fwcolorpiano5_r2_c2.jpg";
>>> fwcolorpiano5_r4_c2_f2 = new Image(109 ,25);
>>> fwcolorpiano5_r4_c2_f2.src
>= "fwcolorpiano5_r4_c2_f2.jpg";
>>> fwcolorpiano5_r4_c2_f1 = new Image(109 ,25);
>>> fwcolorpiano5_r4_c2_f1.src
= "fwcolorpiano5_r4_c2.jpg";
>>> fwcolorpiano5_r6_c2_f2 = new Image(109 ,25);
>>> fwcolorpiano5_r6_c2_f2.src
>= "fwcolorpiano5_r6_c2_f2.jpg";
>>> fwcolorpiano5_r6_c2_f1 = new Image(109 ,25);
>>> fwcolorpiano5_r6_c2_f1.src
= "fwcolorpiano5_r6_c2.jpg";
>>> fwcolorpiano5_r8_c2_f2 = new Image(109 ,25);
>>> fwcolorpiano5_r8_c2_f2.src
>= "fwcolorpiano5_r8_c2_f2.jpg";
>>> fwcolorpiano5_r8_c2_f1 = new Image(109 ,25);
>>> fwcolorpiano5_r8_c2_f1.src
= "fwcolorpiano5_r8_c2.jpg";
>>> fwcolorpiano5_r9_c2_f2 = new Image(109 ,25);
>>> fwcolorpiano5_r9_c2_f2.src
>= "fwcolorpiano5_r9_c2_f2.jpg";
>>> fwcolorpiano5_r9_c2_f1 = new Image(109 ,25);
>>> fwcolorpiano5_r9_c2_f1.src
= "fwcolorpiano5_r9_c2.jpg";
>>> fwcolorpiano5_r11_c2_f2 = new Image(109 ,25);
>>> fwcolorpiano5_r11_c2_f2.src
>>> = "fwcolorpiano5_r11_c2_f2.jpg";
>>> fwcolorpiano5_r11_c2_f1 = new Image(109 ,25);
>>> fwcolorpiano5_r11_c2_f1.src
>= "fwcolorpiano5_r11_c2.jpg";
>>> Silverpiano5_r13_c2_f2 = new Image(109 ,21);
>>> Silverpiano5_r13_c2_f2.src
>= "Silverpiano5_r13_c2_f2.jpg";
>>> Silverpiano5_r13_c2_f1 = new Image(109 ,21);
>>> Silverpiano5_r13_c2_f1.src
= "Silverpiano5_r13_c2.jpg";
>>> Silverpiano5_r15_c2_f2 = new Image(109 ,21);
>>> Silverpiano5_r15_c2_f2.src
>= "Silverpiano5_r15_c2_f2.jpg";
>>> Silverpiano5_r15_c2_f1 = new Image(109 ,21);
>>> Silverpiano5_r15_c2_f1.src
= "Silverpiano5_r15_c2.jpg";
>>> }
>>> // stop hiding -->
>>> </script>
>>> <tr>
>>>
>>> As I've said I'm not a coder, but I do recognize some
>>> stuff about this. Thanks,...Brightbelt
>>>
>>> >-----Original Message-----
>>> >Under Tools | Web or Site Setting, Advanced tab,
>enable
>>> viewing of hidden folders.
>>> >
>>> >--
>>> >==============================================
>>> >Thomas A. Rowe (Microsoft MVP - FrontPage)
>>> >WEBMASTER Resources(tm)
>>> >http://www.ycoln-resources.com
>>> >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
>>> >
>>> >"Brightbelt" <anonymous@discussions.microsoft.com>
>wrote
>>> in message
>>> >news:1c2501c426f9$f8e70b60$a001280a@phx.gbl...
>>> >> Hey-
>>> >> I know in past (and maybe this) versions of FP, I
>>> would
>>> >> see a 'Borders' folder when shared borders was
>used. I
>>> >> see no 'Borders' folder in my web and I'm using
>shared
>>> >> borders. So I need to know where to get to the
>shared
>>> >> border page somehow. I just don't see it anywhere.
>>> >> Thanks,...Brightbelt
>>> >>
>>> >>
>>> >> >-----Original Message-----
>>> >> >Hi Thomas-
>>> >> > I fixed the scroll - found out there was content
>>> that
>>> >> >somehow got erased from the page (Can't explain
>that
>>> >> >one....). As for the preload images error, I'm
>>> exporting
>>> >> >the piano graphic from MM Fireworks into FP using
>the
>>> FP
>>> >> >Html code option, copying and pasting the graphic
>from
>>> >> >the Html page onto my desired page in FP. And I'm
>>> >> cutting
>>> >> >and pasting the javascript into the <head> if
it's
>not
>>> >> >there already.
>>> >> > I'm not sure of what to change for this problem
>or
>>> >> what
>>> >> >I need to do so that preload has the desired
>object in
>>> >> >the code to avoid error. Thanks for your
>>> >> >help,...Brightbelt
>>> >> >
>>> >> >>-----Original Message-----
>>> >> >>Ok-
>>> >> >> So what do I do about it ? Do I need to copy the
>>> >> >>table/navigation graphic to every page even
though
>>> it's
>>> >> >a
>>> >> >>shared border ?
>>> >> >>
>>> >> >>Brightbelt
>>> >> >>
>>> >> >>
>>> >> >>>-----Original Message-----
>>> >> >>>1. preLoadImages is not defined is the
JavaScript
>>> >> error
>>> >> >>on your pages.
>>> >> >>>2. You will only see a scrollbar when you have
>>> content
>>> >> >>the exceeds the browser's window.
>>> >> >>>--
>>> >> >>>==============================================
>>> >> >>>Thomas A. Rowe (Microsoft MVP - FrontPage)
>>> >> >>>WEBMASTER Resources(tm)
>>> >> >>>http://www.ycoln-resources.com
>>> >> >>>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
>>> >> >>>
>>> >> >>>"Brightbelt"
><anonymous@discussions.microsoft.com>
>>> >> >wrote
>>> >> >>in message
>>> >> >>>news:1b7301c426ed$bceb5320$a001280a@phx.gbl...
>>> >> >>>> Hi-
>>> >> >>>> I'm on FP 2003, Win XP Pro. My site
seemingly
>>> >> >>publishes
>>> >> >>>> Ok, but when I browse it, the bottom left
hand
>url
>>> >> on
>>> >> >>the
>>> >> >>>> task bar says there is an error on every page.
>>> Also,
>>> >> >>the
>>> >> >>>> Compositions page has no scroll bar on it !!
It
>>> even
>>> >> >>>> previews the browser in FP with no scroll
bar.
>My
>>> >> site
>>> >> >>>> is,.. http://www.frankbright.com . I hope I
can
>>> fix
>>> >> >>this
>>> >> >>>> as I am not a coder. Help is
>appreciated,...Many
>>> >> >>>> Thanks,...Brightbelt
>>> >> >>>
>>> >> >>>
>>> >> >>>.
>>> >> >>>
>>> >> >>.
>>> >> >>
>>> >> >.
>>> >> >
>>> >
>>> >
>>> >.
>>> >
>>
>>
>>.
>>
>.
>



Relevant Pages

  • Re: Is there a correct place to put javascript within a html file?
    ... The HTML specification tells you where script elements are permitted: ... script files have downloaded and if they're all in the head ... ... like the sensible thing to do; at least there's a reason for it. ... javascript is positioned just before the then the various html ...
    (comp.lang.javascript)
  • Re: Master and Content js
    ... embedded or inline JavaScript can be used anywhere in the .master however in general and especially when using 3rd party script in our .master the is most frequently embedded right before the element to avoid conflicts with other script while the page is loading. ... Unless your using Themes which are really FUBAR and intrusive it is really easy to control every line of code written into the <head> of a Content page when embedded script is unique to that particular page but all things considered script should be written to a file that loads from the file system. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Javascript file not being called at appropriate time in 2.0?
    ... I have this script in my tag: ... and paste the actual script (the javascript code, ... exact same place in the <HEAD> tag, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Master and Content js
    ... embedded or inline JavaScript can be used anywhere in the .master however in general and especially when using 3rd party script in our .master the is most frequently embedded right before the element to avoid conflicts with other script while the page is loading. ... Unless your using Themes which are really FUBAR and intrusive it is really easy to control every line of code written into the <head> of a Content page when embedded script is unique to that particular page but all things considered script should be written to a file that loads from the file system. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Help with space mysterous small spacing gltich
    ... javascript for old browsers, ... declaration, a head, a title in the head and so on.... ... It's actually not for a website, it's for an eBay auction template, so the whole top section get stripped, so I didn't include it. ...
    (alt.html)