Using Frontpage to go frameless

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dennis Allen

    #1

    Using Frontpage to go frameless

    Hi. Anyone here use FrontPage? I've been thinking of using Frontpage to
    take my web site, www.dennisallen.com, and go frameless. Since I have a
    left framed frame.htm with lots of javascipt code, is this a good idea?

    I could use FP insert/components/web page to add my frame.htm page to all
    other pages. But frame.htm has lots of javascript functions in the header,
    and needs onload= to start them. I suppose I could move my <script> code
    into the <body>. What are the advantages/disadvantages of <head> script
    code as opposed to <body> script code?

    Side question. Many of my pages have external <script src="temp.js"> calls.
    In fact, a couple of pages I have to create a <body onload="xload() "> in
    which xload() checks to make sure all the temp.js functions are loaded
    before proceeding. Now it seems to me that the FP insert/component/page
    could bypass this need altogether, but insert/component/page only asks for
    *.htm files. What, do I want to convert my *.js files to *.htm files,
    wraping <html><body><sc ript></script></body></html> around them?

    Any advice is appreciated...D ennis


  • Randy Webb

    #2
    Re: Using Frontpage to go frameless

    Dennis Allen wrote:
    [color=blue]
    > Hi. Anyone here use FrontPage? I've been thinking of using Frontpage to
    > take my web site, www.dennisallen.com, and go frameless. Since I have a
    > left framed frame.htm with lots of javascipt code, is this a good idea?[/color]

    No I don't use FP, never will. But yes, its always a good idea to go
    frameless and lose the problems frames introduce.
    [color=blue]
    > I could use FP insert/components/web page to add my frame.htm page to all
    > other pages. But frame.htm has lots of javascript functions in the header,
    > and needs onload= to start them. I suppose I could move my <script> code
    > into the <body>. What are the advantages/disadvantages of <head> script
    > code as opposed to <body> script code?[/color]

    Depends on your perspective. Where they need to be depends on the
    script. It has been recommended here in this groups to put as much
    script as you can at the end of the page, so that the beginning of the
    page displays quicker. If you are calling a function, as the page loads,
    then obviously that function has to be defined before you can call it,
    thus it needs to be loaded prior to that.

    [color=blue]
    > Side question. Many of my pages have external <script src="temp.js"> calls.
    > In fact, a couple of pages I have to create a <body onload="xload() "> in
    > which xload() checks to make sure all the temp.js functions are loaded
    > before proceeding. Now it seems to me that the FP insert/component/page
    > could bypass this need altogether, but insert/component/page only asks for
    > *.htm files. What, do I want to convert my *.js files to *.htm files,
    > wraping <html><body><sc ript></script></body></html> around them?[/color]

    Wrap them only in <script type="text/javascript"></script> tags. The
    rest are not needed and will cause your pages to be invalid HTML files
    (not that I think FP can produce valid HTML to start with).


    --
    Randy

    Comment

    • Silvio Bierman

      #3
      Re: Using Frontpage to go frameless


      "Dennis Allen" <dennis@dennisa llen.com> wrote in message
      news:100gk83m9l uj488@corp.supe rnews.com...[color=blue]
      > Hi. Anyone here use FrontPage? I've been thinking of using Frontpage to
      > take my web site, www.dennisallen.com, and go frameless. Since I have a
      > left framed frame.htm with lots of javascipt code, is this a good idea?
      >
      > I could use FP insert/components/web page to add my frame.htm page to all
      > other pages. But frame.htm has lots of javascript functions in the[/color]
      header,[color=blue]
      > and needs onload= to start them. I suppose I could move my <script> code
      > into the <body>. What are the advantages/disadvantages of <head> script
      > code as opposed to <body> script code?
      >
      > Side question. Many of my pages have external <script src="temp.js">[/color]
      calls.[color=blue]
      > In fact, a couple of pages I have to create a <body onload="xload() "> in
      > which xload() checks to make sure all the temp.js functions are loaded
      > before proceeding. Now it seems to me that the FP insert/component/page
      > could bypass this need altogether, but insert/component/page only asks for
      > *.htm files. What, do I want to convert my *.js files to *.htm files,
      > wraping <html><body><sc ript></script></body></html> around them?
      >
      > Any advice is appreciated...D ennis
      >
      >[/color]

      I dont know about FP, but is that insert/component/page not simply creating
      an IFRAME (which is still a frame)? Have you looked at the HTML that comes
      out?

      Silvio Bierman


      Comment

      • Dennis Allen

        #4
        Re: Using Frontpage to go frameless

        No, it's not a frame. Say I insert a header.htm component into every page
        of my site. The <body> portion of header.htm is physically inserted into
        every page. If you modify header.htm in FP, however, the changes will also
        show up everywhere.

        "Silvio Bierman" <sbierman@idfix .nl> wrote in message
        news:4008882b$0 $323$e4fe514c@n ews.xs4all.nl.. .[color=blue]
        >
        > "Dennis Allen" <dennis@dennisa llen.com> wrote in message
        > news:100gk83m9l uj488@corp.supe rnews.com...[color=green]
        > > Hi. Anyone here use FrontPage? I've been thinking of using Frontpage[/color][/color]
        to[color=blue][color=green]
        > > take my web site, www.dennisallen.com, and go frameless. Since I have a
        > > left framed frame.htm with lots of javascipt code, is this a good idea?
        > >
        > > I could use FP insert/components/web page to add my frame.htm page to[/color][/color]
        all[color=blue][color=green]
        > > other pages. But frame.htm has lots of javascript functions in the[/color]
        > header,[color=green]
        > > and needs onload= to start them. I suppose I could move my <script>[/color][/color]
        code[color=blue][color=green]
        > > into the <body>. What are the advantages/disadvantages of <head> script
        > > code as opposed to <body> script code?
        > >
        > > Side question. Many of my pages have external <script src="temp.js">[/color]
        > calls.[color=green]
        > > In fact, a couple of pages I have to create a <body onload="xload() "> in
        > > which xload() checks to make sure all the temp.js functions are loaded
        > > before proceeding. Now it seems to me that the FP insert/component/page
        > > could bypass this need altogether, but insert/component/page only asks[/color][/color]
        for[color=blue][color=green]
        > > *.htm files. What, do I want to convert my *.js files to *.htm files,
        > > wraping <html><body><sc ript></script></body></html> around them?
        > >
        > > Any advice is appreciated...D ennis
        > >
        > >[/color]
        >
        > I dont know about FP, but is that insert/component/page not simply[/color]
        creating[color=blue]
        > an IFRAME (which is still a frame)? Have you looked at the HTML that comes
        > out?
        >
        > Silvio Bierman
        >
        >[/color]


        Comment

        • Dennis Allen

          #5
          Re: Using Frontpage to go frameless


          "Randy Webb" <hikksnotathome @aol.com> wrote in message
          news:HdCdnS7wwY Vz7ZXd4p2dnA@co mcast.com...[color=blue]
          > Dennis Allen wrote:
          >[color=green]
          > > I could use FP insert/components/web page to add my frame.htm page to[/color][/color]
          all[color=blue][color=green]
          > > other pages. But frame.htm has lots of javascript functions in the[/color][/color]
          header,[color=blue][color=green]
          > > and needs onload= to start them. I suppose I could move my <script>[/color][/color]
          code[color=blue][color=green]
          > > into the <body>. What are the advantages/disadvantages of <head> script
          > > code as opposed to <body> script code?[/color]
          >
          > Depends on your perspective. Where they need to be depends on the
          > script. It has been recommended here in this groups to put as much
          > script as you can at the end of the page, so that the beginning of the
          > page displays quicker. If you are calling a function, as the page loads,
          > then obviously that function has to be defined before you can call it,
          > thus it needs to be loaded prior to that.
          >[/color]
          Well, the functions I have wouldn't start until launched with a <body
          onload>. The problem is that onload doesn't doesn't wait for all external
          js files to load.
          [color=blue]
          >[color=green]
          > > Side question. Many of my pages have external <script src="temp.js">[/color][/color]
          calls.[color=blue][color=green]
          > > In fact, a couple of pages I have to create a <body onload="xload() "> in
          > > which xload() checks to make sure all the temp.js functions are loaded
          > > before proceeding. Now it seems to me that the FP insert/component/page
          > > could bypass this need altogether, but insert/component/page only asks[/color][/color]
          for[color=blue][color=green]
          > > *.htm files. What, do I want to convert my *.js files to *.htm files,
          > > wraping <html><body><sc ript></script></body></html> around them?[/color]
          >
          > Wrap them only in <script type="text/javascript"></script> tags. The
          > rest are not needed and will cause your pages to be invalid HTML files
          > (not that I think FP can produce valid HTML to start with).
          >[/color]
          Well, I want to get away from external js files. I have seen a <body
          onload="xload() "> execute before a js file had a chance to load. Maybe that
          new FP2003 dynamic web template feature can help...Dennis



          Comment

          • Randy Webb

            #6
            Re: Using Frontpage to go frameless

            Dennis Allen wrote:

            <--snip-->
            [color=blue][color=green][color=darkred]
            >>>In fact, a couple of pages I have to create a <body onload="xload() "> in
            >>>which xload() checks to make sure all the temp.js functions are loaded
            >>>before proceeding. Now it seems to me that the FP insert/component/page
            >>>could bypass this need altogether, but insert/component/page only asks[/color][/color]
            >
            > for
            >[color=green][color=darkred]
            >>>*.htm files. What, do I want to convert my *.js files to *.htm files,
            >>>wraping <html><body><sc ript></script></body></html> around them?[/color]
            >>
            >>Wrap them only in <script type="text/javascript"></script> tags. The
            >>rest are not needed and will cause your pages to be invalid HTML files
            >>(not that I think FP can produce valid HTML to start with).
            >>[/color]
            >
            > Well, I want to get away from external js files. I have seen a <body
            > onload="xload() "> execute before a js file had a chance to load. Maybe that
            > new FP2003 dynamic web template feature can help...Dennis[/color]

            Don't call it as a .js file, take each of your .js files and add the
            opening script tag at the beginning, the closing script tag at the end,
            so that they look like this:

            <script type="text/javascript">
            //contents of .js file here
            </script>

            Save it with an .htm extension.

            Then have FP include it. When it does that, it becomes part of the html
            document sent to the browser:

            some page stuff here
            <script.....>
            </script>
            more page stuff here.


            The easiest way to see this is to test it by making the template,
            include the .htm file, then view what the browser gets.




            --
            Randy

            Comment

            • Silvio Bierman

              #7
              Re: Using Frontpage to go frameless


              "Dennis Allen" <dennis@dennisa llen.com> wrote in message
              news:100hhmrmf2 06af4@corp.supe rnews.com...[color=blue]
              > No, it's not a frame. Say I insert a header.htm component into every page
              > of my site. The <body> portion of header.htm is physically inserted into
              > every page. If you modify header.htm in FP, however, the changes will[/color]
              also[color=blue]
              > show up everywhere.
              >
              > "Silvio Bierman" <sbierman@idfix .nl> wrote in message
              > news:4008882b$0 $323$e4fe514c@n ews.xs4all.nl.. .[color=green]
              > >
              > > "Dennis Allen" <dennis@dennisa llen.com> wrote in message
              > > news:100gk83m9l uj488@corp.supe rnews.com...[color=darkred]
              > > > Hi. Anyone here use FrontPage? I've been thinking of using Frontpage[/color][/color]
              > to[color=green][color=darkred]
              > > > take my web site, www.dennisallen.com, and go frameless. Since I have[/color][/color][/color]
              a[color=blue][color=green][color=darkred]
              > > > left framed frame.htm with lots of javascipt code, is this a good[/color][/color][/color]
              idea?[color=blue][color=green][color=darkred]
              > > >
              > > > I could use FP insert/components/web page to add my frame.htm page to[/color][/color]
              > all[color=green][color=darkred]
              > > > other pages. But frame.htm has lots of javascript functions in the[/color]
              > > header,[color=darkred]
              > > > and needs onload= to start them. I suppose I could move my <script>[/color][/color]
              > code[color=green][color=darkred]
              > > > into the <body>. What are the advantages/disadvantages of <head>[/color][/color][/color]
              script[color=blue][color=green][color=darkred]
              > > > code as opposed to <body> script code?
              > > >
              > > > Side question. Many of my pages have external <script src="temp.js">[/color]
              > > calls.[color=darkred]
              > > > In fact, a couple of pages I have to create a <body onload="xload() ">[/color][/color][/color]
              in[color=blue][color=green][color=darkred]
              > > > which xload() checks to make sure all the temp.js functions are loaded
              > > > before proceeding. Now it seems to me that the FP[/color][/color][/color]
              insert/component/page[color=blue][color=green][color=darkred]
              > > > could bypass this need altogether, but insert/component/page only asks[/color][/color]
              > for[color=green][color=darkred]
              > > > *.htm files. What, do I want to convert my *.js files to *.htm files,
              > > > wraping <html><body><sc ript></script></body></html> around them?
              > > >
              > > > Any advice is appreciated...D ennis
              > > >
              > > >[/color]
              > >
              > > I dont know about FP, but is that insert/component/page not simply[/color]
              > creating[color=green]
              > > an IFRAME (which is still a frame)? Have you looked at the HTML that[/color][/color]
              comes[color=blue][color=green]
              > > out?
              > >
              > > Silvio Bierman
              > >
              > >[/color]
              >
              >[/color]

              OK, got it. Strange way of dealing with HTML. It will lead to such messy
              issues you are confronted with. A complete HTML page can not be inserted
              transparently inside another HTML page. Simple HTML fragments could but
              these would then be designed with embedding in various pages in mind.

              Silvio Bierman


              Comment

              • Michael Winter

                #8
                Re: Using Frontpage to go frameless

                On Fri, 16 Jan 2004 16:00:02 -0500, Dennis Allen <dennis@dennisa llen.com>
                wrote:
                [color=blue]
                > Hi. Anyone here use FrontPage?[/color]

                Not personally. It's much easier to write valid code with a basic text
                editor than it is FrontPage.
                [color=blue]
                > I've been thinking of using Frontpage to take my web site,
                > www.dennisallen.com, and go frameless. Since I have a left framed
                > frame.htm with lots of javascipt code, is this a good idea?[/color]

                It depends how you intend to replace it. You could probably migrate to a
                CSS-based menu system where it provides the positioning in place of the
                frame. The W3C uses such a system, however they don't use JavaScript with
                it.
                [color=blue]
                > I could use FP insert/components/web page to add my frame.htm page
                > to all other pages. But frame.htm has lots of javascript functions
                > in the header, and needs onload= to start them. I suppose I could
                > move my <script> code into the <body>. What are the
                > advantages/disadvantages of <head> script code as opposed to <body>
                > script code?[/color]

                My impression[1] is that scripts placed in the head of the document are
                loaded and parsed before the body is rendered. That would guarantee the
                availability of the script to the rest of the document. However, there is
                no mention in the HTML specification of how scheduling should be
                implemented. I wouldn't know where to look in the RFCs for relevant
                information (a simple search returned either too many (Google), or no
                results (RFC archives)).
                [color=blue]
                > Side question. Many of my pages have external
                > <script src="temp.js"> calls. In fact, a couple of pages I have to
                > create a <body onload="xload() "> in which xload() checks to make
                > sure all the temp.js functions are loaded before proceeding. Now it
                > seems to me that the FP insert/component/page could bypass this
                > need altogether, but insert/component/page only asks for *.htm
                > files. What, do I want to convert my *.js files to *.htm files,
                > wraping <html><body><sc ript></script></body></html> around them?[/color]

                If 'my impression' above is correct, then there is no need. Just place the
                SCRIPT elements in the head of the document. If it isn't, select the code
                and paste it into SCRIPT elements.

                As a matter of principle, please remove the "Valid HTML 4.01" logo from
                your site. You have not met the requirements, so you don't have the cause,
                or the right, to claim otherwise.

                Mike

                [1] Read: I haven't tested it, nor read that it is true. It is a casual
                observation.

                --
                Michael Winter
                M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

                Comment

                • Dennis Allen

                  #9
                  Re: Using Frontpage to go frameless

                  Thanks. I'll try it...Dennis

                  "Randy Webb" <hikksnotathome @aol.com> wrote in message
                  news:14GdnbPCn_ DqRJXd4p2dnA@co mcast.com...[color=blue]
                  > Dennis Allen wrote:
                  >
                  > <--snip-->
                  >[color=green][color=darkred]
                  > >>>In fact, a couple of pages I have to create a <body onload="xload() ">[/color][/color][/color]
                  in[color=blue][color=green][color=darkred]
                  > >>>which xload() checks to make sure all the temp.js functions are loaded
                  > >>>before proceeding. Now it seems to me that the FP[/color][/color][/color]
                  insert/component/page[color=blue][color=green][color=darkred]
                  > >>>could bypass this need altogether, but insert/component/page only asks[/color]
                  > >
                  > > for
                  > >[color=darkred]
                  > >>>*.htm files. What, do I want to convert my *.js files to *.htm files,
                  > >>>wraping <html><body><sc ript></script></body></html> around them?
                  > >>
                  > >>Wrap them only in <script type="text/javascript"></script> tags. The
                  > >>rest are not needed and will cause your pages to be invalid HTML files
                  > >>(not that I think FP can produce valid HTML to start with).
                  > >>[/color]
                  > >
                  > > Well, I want to get away from external js files. I have seen a <body
                  > > onload="xload() "> execute before a js file had a chance to load. Maybe[/color][/color]
                  that[color=blue][color=green]
                  > > new FP2003 dynamic web template feature can help...Dennis[/color]
                  >
                  > Don't call it as a .js file, take each of your .js files and add the
                  > opening script tag at the beginning, the closing script tag at the end,
                  > so that they look like this:
                  >
                  > <script type="text/javascript">
                  > //contents of .js file here
                  > </script>
                  >
                  > Save it with an .htm extension.
                  >
                  > Then have FP include it. When it does that, it becomes part of the html
                  > document sent to the browser:
                  >
                  > some page stuff here
                  > <script.....>
                  > </script>
                  > more page stuff here.
                  >
                  >
                  > The easiest way to see this is to test it by making the template,
                  > include the .htm file, then view what the browser gets.
                  >
                  >
                  >
                  >
                  > --
                  > Randy
                  >[/color]


                  Comment

                  • Dennis Allen

                    #10
                    Re: Using Frontpage to go frameless

                    You're right. The site is no longer html 4.01 valid. I'll remove the logo
                    and get the site revalidated asap...Dennis

                    "Michael Winter" <M.Winter@bluey onder.co.invali d> wrote in message
                    news:opr1xr97p4 5vklcq@news-text.blueyonder .co.uk...[color=blue]
                    > On Fri, 16 Jan 2004 16:00:02 -0500, Dennis Allen <dennis@dennisa llen.com>
                    > wrote:
                    >[color=green]
                    > > Hi. Anyone here use FrontPage?[/color]
                    >
                    > Not personally. It's much easier to write valid code with a basic text
                    > editor than it is FrontPage.
                    >[color=green]
                    > > I've been thinking of using Frontpage to take my web site,
                    > > www.dennisallen.com, and go frameless. Since I have a left framed
                    > > frame.htm with lots of javascipt code, is this a good idea?[/color]
                    >
                    > It depends how you intend to replace it. You could probably migrate to a
                    > CSS-based menu system where it provides the positioning in place of the
                    > frame. The W3C uses such a system, however they don't use JavaScript with
                    > it.
                    >[color=green]
                    > > I could use FP insert/components/web page to add my frame.htm page
                    > > to all other pages. But frame.htm has lots of javascript functions
                    > > in the header, and needs onload= to start them. I suppose I could
                    > > move my <script> code into the <body>. What are the
                    > > advantages/disadvantages of <head> script code as opposed to <body>
                    > > script code?[/color]
                    >
                    > My impression[1] is that scripts placed in the head of the document are
                    > loaded and parsed before the body is rendered. That would guarantee the
                    > availability of the script to the rest of the document. However, there is
                    > no mention in the HTML specification of how scheduling should be
                    > implemented. I wouldn't know where to look in the RFCs for relevant
                    > information (a simple search returned either too many (Google), or no
                    > results (RFC archives)).
                    >[color=green]
                    > > Side question. Many of my pages have external
                    > > <script src="temp.js"> calls. In fact, a couple of pages I have to
                    > > create a <body onload="xload() "> in which xload() checks to make
                    > > sure all the temp.js functions are loaded before proceeding. Now it
                    > > seems to me that the FP insert/component/page could bypass this
                    > > need altogether, but insert/component/page only asks for *.htm
                    > > files. What, do I want to convert my *.js files to *.htm files,
                    > > wraping <html><body><sc ript></script></body></html> around them?[/color]
                    >
                    > If 'my impression' above is correct, then there is no need. Just place the
                    > SCRIPT elements in the head of the document. If it isn't, select the code
                    > and paste it into SCRIPT elements.
                    >
                    > As a matter of principle, please remove the "Valid HTML 4.01" logo from
                    > your site. You have not met the requirements, so you don't have the cause,
                    > or the right, to claim otherwise.
                    >
                    > Mike
                    >
                    > [1] Read: I haven't tested it, nor read that it is true. It is a casual
                    > observation.
                    >
                    > --
                    > Michael Winter
                    > M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)[/color]


                    Comment

                    Working...