SitePoint Sponsor

User Tag List

Results 1 to 11 of 11

Thread: IE6 open browser window problems...HELP!

  1. #1
    SitePoint Member
    Join Date
    Jun 2003
    Location
    Durban
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE6 open browser window problems...HELP!

    Please, can anyone help on this issue!
    I design on a Mac, so for me everything works just fine. HOWEVER, I have just found when I'm testing on PC's (IE6) that my precious open browser window behaviors won't work: instead a blank window (of the correct size) opens up. What on earth am I supposed to do about this?

    Do I have to redesign my pages to load the image in the current page - which I REALLY don't want to do. I can't just say "If you're viewing this in IE6 and you can't see the OBWindow - TOUGH!" Worst of all, my clients' computer has this problem - really doesn't look good. Plus, from what I can gather, the "fix" is fairly complicated, I can't expect the average user to go trawling around in the nether regions of their PC's just to see the images. AAAAAARGH! Please can someone advise ... this has completely stumped me.

    Thanks.

  2. #2
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it always helps if you actually post your code and/or a link to a live example...
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com

  3. #3
    SitePoint Member
    Join Date
    Jun 2003
    Location
    Durban
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for quick reply... site not complete yet, not yet live. Apparently this doesn't necessarily happen on all PC's but can be fine one day and botched the next (never to return again)... just my luck it's like that on the clients computer. So chances are even if it was live, it may not be a problem to everyone. Do I worry about this?

    I have looked it up on the net and it's definitely out there so don't really feel like I can fix the two computers with this problem and then ignore the rest of the planet who may (hopefully) see the site.

    By the by, site is made in Dreamweaver MX, with a straight open browser window behavior applied to a thumbnail of the image.

  4. #4
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well...at least post both your open window behaviour javascript and the link you're applying it to here...otherwise there's very little we can do...
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com

  5. #5
    SitePoint Member
    Join Date
    Jun 2003
    Location
    Durban
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Does this help?
    I'd be quite happy to know where I'm going wrong.

    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }

    <a href="javascript:;" onClick="MM_openBrWindow('images/gallery/gal1/lrg/1957.jpg','','width=315,height=215')"><img src="images/gallery/gal1/thumbnails/1957_small.jpg" width="100" height="70" border="0"></a>

  6. #6
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Make sure you're referencing the correct path to the image. Also, here's a better and more accessible way of opening your links in a new window:
    Code:
    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }
    
    <a href="images/gallery/gal1/lrg/1957.jpg" 
    onClick="MM_openBrWindow(this.href,'newWin','width=315,height=215'); return false;">
    <img src="images/gallery/gal1/thumbnails/1957_small.jpg" width="100" height="70" border="0"></a>
    If your browser supports opening new-window links, the links will now open in a new window. Otherwise, it will open in the same window as a fallback. I also named the new window as "newWin", so other scripts can reference it (for example, if you wanted a link in the parent window to close the pop-up).

  7. #7
    SitePoint Member
    Join Date
    Jun 2003
    Location
    Durban
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ooooo! Thank you SO MUCH - sounds like the perfect solution for this particular dilemma. Will give that a bash. I assume that the user will then have to use back button to return to gallery?

    But seriously I don't think it's my code... works fine on my computer (I know that sounds dumb, but wait...) and also worked perfectly on testing PC last week, but this week no OBW behaviours work on that PC.
    Also look at this: http://winangels.com/win9xnt/tips/xp...newbrowser.htm
    ... I don't think it's just me (for once).

    Thanks again for the code, seems to be a good work-around for something that may become a problem for many.

  8. #8
    SitePoint Member
    Join Date
    Jun 2003
    Location
    Durban
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just a thought... if IE6 opens a blank browser window then will the new scripting work or will it load a blank browser window AND the image in the parent page?
    Reinstalled IE6 on testing PC - now it works fine on galleries with and without new scripting - go figure.

  9. #9
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by kita
    Just a thought... if IE6 opens a blank browser window then will the new scripting work or will it load a blank browser window AND the image in the parent page?
    Reinstalled IE6 on testing PC - now it works fine on galleries with and without new scripting - go figure.
    Actually it won't help your past situation, but it will open in the same window for browsers that can't open new windows (i.e. PocketPC/Palm and cellphone browsers). Remember, the Web is much more than a visual medium, and people will get to your website in ways you never thought possible. In IE6 with your bug though, it will just open the blank page and nothing else (thanks Microsoft! ).

  10. #10
    SitePoint Member
    Join Date
    Jun 2003
    Location
    Durban
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm, good point.

    Can I ask 1 more stupid question... should probably go in the JavaScript forum though. On these Open Browser Windows is there some margin width/ margin height attribute I should be adding? I've been setting the window to the exact same dimensions as the image but on my Mac it sits in the top left corner with a white border on the right and bottom and on a PC it has a white space on the left and top and cuts off the picture on the right and bottom.

    Jeez, I've got so much to learn!

  11. #11
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    I usually just add 10 pixels to the image's width and height, and feed that computed value into my new-window script. That will cause your image to appear in most browsers without scrollbars.

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
  •