SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Enthusiast Setac's Avatar
    Join Date
    Nov 2000
    Location
    San Marcos CA
    Posts
    83
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    resizeTo() in Netscape

    I think I had a link to Sitepoints FAQ section... I can't find it. Is there an archive of SitePoint material?

    My immediate problem is a site I have with some popup windows. I open small windows (200x200) to provide notices. Some of them work as I expect. But a couple of windows will not size correctly in Netscape. Whether I use window.open or include a self.resizeTo() inside the page, I still get a large window.

    All the pages work in IE. I have problems in Netscape. Some of the exact same code, copy/paste, from working pages placed in the problem pages does not work.

    What am I missing?

    Thanks for any help...
    Dynamic HTML - Is that a Frisbee based language...

  2. #2
    SitePoint Enthusiast
    Join Date
    Apr 2001
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    using resizeTo()

    Without example of what you are doing it's difficult to say, but I offer these two things to check:

    Perhaps you have some other JavaScript on the page that Netscape doesn't like? Try checking for errors in Netscape by typing "javascript:" in the location bar and see if anything else on the page is throwing errors.

    The other thing you might check is where you are calling the resizeTo() method. I know Netscape can be funny about where it let's you call JavaScript from, i.e. <tables> and <divs>. I use it in a <script> in the document head without trouble.
    <<< johnny chidiac
    johnnydaboy@mac.com

  3. #3
    Happy Holidays !! Paul S's Avatar
    Join Date
    Mar 2001
    Location
    Mexico
    Posts
    1,287
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, are you using something like this?

    w = window.open("","","width=200,height=200");

    The important part is "width=200,height=200".

    Paul

  4. #4
    SitePoint Enthusiast Setac's Avatar
    Join Date
    Nov 2000
    Location
    San Marcos CA
    Posts
    83
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the help.

    The only difference between my code and Paul's is spaces after the commas. I tried it without the spaces and it works in both Netscape and MSIE. The spaces seem to create a problem for Netscape....
    Dynamic HTML - Is that a Frisbee based language...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •