Why Are Scrollbars Missing

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

    Why Are Scrollbars Missing

    My script opens a window that is supposed to be resizable and
    scrollable. I am on a Mac. With IE 5.1.7 it works fine. With Netscape 6
    there is no scroll bar. I am able to resize it smaller than the page
    but scrollbars still do not appear. What am I doing wrong. Is this just
    a bug in the Mac version of Netscape. Please let me know if the popup
    window is scrollable on your platform and do you see a problem with my
    code.

    The page is http://www.dcs-chico.com/~denmarks/amtrak.html
    (just select a train with many stops such as California Zephyr)

    The code that creates the window is in


    --
    Dennis M. Marks


    -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
    http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
    -----== Over 100,000 Newsgroups - 19 Different Servers! =-----
  • kaeli

    #2
    Re: Why Are Scrollbars Missing

    In article <02122003072312 6528%denmarks@d csi.net>, denmarks@dcsi.n et
    enlightened us with...[color=blue]
    > My script opens a window that is supposed to be resizable and
    > scrollable. I am on a Mac. With IE 5.1.7 it works fine. With Netscape 6
    > there is no scroll bar. I am able to resize it smaller than the page
    > but scrollbars still do not appear. What am I doing wrong. Is this just
    > a bug in the Mac version of Netscape. Please let me know if the popup
    > window is scrollable on your platform and do you see a problem with my
    > code.
    >[/color]

    Worked fine in NN6.2 and 7.1 on Windows 2K and NC4.76 on Unix Solaris.

    --
    --
    ~kaeli~
    The definition of a will?... (It's a dead giveaway.)



    Comment

    • DU

      #3
      Re: Why Are Scrollbars Missing

      Dennis M. Marks wrote:
      [color=blue]
      > My script opens a window that is supposed to be resizable and
      > scrollable. I am on a Mac. With IE 5.1.7 it works fine. With Netscape 6
      > there is no scroll bar.[/color]

      I have no idea why it is like that on NS 6. It's probably a bug. But
      note that most people who ever used NS 6 are now all using NS 7.x or
      Mozilla or Camino. I tried your page with NS 7.1 on windows and the
      popup had scrollbars when the content area was larger/taller than the
      window dimensions.


      I am able to resize it smaller than the page[color=blue]
      > but scrollbars still do not appear. What am I doing wrong. Is this just
      > a bug in the Mac version of Netscape. Please let me know if the popup
      > window is scrollable on your platform and do you see a problem with my
      > code.
      >
      > The page is http://www.dcs-chico.com/~denmarks/amtrak.html
      > (just select a train with many stops such as California Zephyr)
      >
      > The code that creates the window is in
      > http://www.dcs-chico.com/~denmarks/amtrakscripts.js
      >[/color]


      function createWindow() {

      winStats="toolb ar=no,location= no,directories= no,menubar=no,s crollbars=yes,r esizable=yes,wi dth=625,height= 600";
      smallWindow=win dow.open("","", winStats);
      };

      You can write the function like this (more compact):

      function createWindow() {
      smallWindow = window.open("", "",
      "scrollbars=yes ,resizable=yes, width=625,heigh t=600");
      };

      "(...) if you do supply the windowFeatures parameter, then (...) the
      other features which have a yes/no choice are no by default."


      "(...) When the sFeatures parameter is specified, the features that are
      not defined in the parameter are disabled."
      Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.


      Note also that the requested height is too much for all 800x600 and
      1024x768 scr. res. on windows since the availHeight (area for
      applications; minus semi-permanent os-dependent applications like
      windows' taskbar, MS-office quick launch bar, MS-magnifier, etc.) will
      be smaller than 600. I think you should make the initial requested
      height of smallWindow shorter than 600. The bottom part of the 625x600
      popups were all [clipped] off the screen or under the window taskbar
      over here.

      The scripts in that page use a dangerous (IMO) number of
      document.write( ). I think the whole scripts could be written without any
      document.write( ) and by using W3C DOM methods instead. Slashes are not
      escaped in these calls and will generate validation errors.

      My 2 cents

      DU

      Comment

      • Michael Winter

        #4
        Re: Why Are Scrollbars Missing

        DU wrote on 02 Dec 2003:
        [color=blue]
        > The scripts in that page use a dangerous (IMO) number of
        > document.write( ). I think the whole scripts could be written
        > without any document.write( ) and by using W3C DOM methods
        > instead. Slashes are not escaped in these calls and will
        > generate validation errors.[/color]

        I'd just like to point out that the write() and writeln() methods
        /are/ part of DOM (the HTMLDocument interface), but I know what you
        meant. It might have been better to say the Document factory methods,
        createElement() , createTextNode( ), and so forth.

        Mike

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

        Comment

        • Dennis M. Marks

          #5
          Re: Why Are Scrollbars Missing

          In article <bqijrt$r8l$1@n ews.eusc.inter. net>, DU
          <drunclear@hotW IPETHISmail.com > wrote:
          [color=blue]
          > You can write the function like this (more compact):
          >
          > function createWindow() {
          > smallWindow = window.open("", "",
          > "scrollbars=yes ,resizable=yes, width=625,heigh t=600");
          > };
          >
          > The scripts in that page use a dangerous (IMO) number of
          > document.write( ). I think the whole scripts could be written without any
          > document.write( ) and by using W3C DOM methods instead. Slashes are not
          > escaped in these calls and will generate validation errors.
          >[/color]

          Thank you for your advice. I have changed the window.open. I do not
          know any other methods to replace document.write. I only do it for fun
          and do not wish to get into "W3C DOM methods" which I know nothing
          about.

          Be my guest and give me an example but I may just leave it as it is.

          --
          Dennis M. Marks


          -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
          http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
          -----== Over 100,000 Newsgroups - 19 Different Servers! =-----

          Comment

          • DU

            #6
            Re: Why Are Scrollbars Missing

            Michael Winter wrote:[color=blue]
            > DU wrote on 02 Dec 2003:
            >
            >[color=green]
            >>The scripts in that page use a dangerous (IMO) number of
            >>document.writ e(). I think the whole scripts could be written
            >>without any document.write( ) and by using W3C DOM methods
            >>instead. Slashes are not escaped in these calls and will
            >>generate validation errors.[/color]
            >
            >
            > I'd just like to point out that the write() and writeln() methods
            > /are/ part of DOM (the HTMLDocument interface)[/color]

            Yes. DOM 2 HTML specifications.

            , but I know what you[color=blue]
            > meant. It might have been better to say the Document factory methods,
            > createElement() , createTextNode( ), and so forth.
            >
            > Mike
            >[/color]

            Right! :) document.write( ) is general and not specific like other DOM
            methods which append, change, create, modify, remove, delete, etc.. DOM
            nodes and document.

            DU

            Comment

            Working...