Results 1 to 5 of 5

Thread: Browser Problem

  1. #1
    Join Date
    Aug 2011
    Location
    Rep Of Ireland
    Posts
    126
    Thanks
    24
    Thanked 3 Times in 1 Post

    Arrow Browser Problem

    I have the following image hyperlinked to call a popup window playing a VeriSign video. It works fine in Chrome, Safari and Firefox. It will not do the business in IE, yet all other javascripts work there. Link at http://www.webitry.net/ShopThankU.html

    Code:
    <a href="javascript:veripop()"><img style="border:0;width:137px;height:46px" src="album/verisign.jpg" alt="Verisign Trusted Link" /></a>
    Is there anything that can be done to make the thing work in IE?

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,094
    Thanks
    1
    Thanked 205 Times in 201 Posts

    Default

    Hi there Webiter,

    IE chokes on spaces in the windowName.
    So instead of...
    Code:
    window.open('verisign.html','Verisign Video','scrollbars=1,statusbar=0,resizable=0,width=450,height=365,left=450,top=200');}
    
    ...use...
    Code:
    window.open('verisign.html','Verisign_Video','scrollbars=1,statusbar=0,resizable=0,width=450,height=365,left=450,top=200');}
    
    ...or...
    Code:
    window.open('verisign.html','VerisignVideo','scrollbars=1,statusbar=0,resizable=0,width=450,height=365,left=450,top=200');}
    
    coothead

  3. The Following User Says Thank You to coothead For This Useful Post:

    Webiter (08-26-2011)

  4. #3
    Join Date
    Dec 2004
    Posts
    177
    Thanks
    0
    Thanked 18 Times in 17 Posts

    Default

    Is that it? I was thinking it was the location of the url that threw IE off.

    That using "verisign.html" instead of "../verisign.html" caused it to look in the my_js folder rather than the root directory.

    Perhaps it's just an old habit.
    Verzeihung!

  5. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Quote Originally Posted by Minos View Post
    Is that it? I was thinking it was the location of the url that threw IE off.

    That using "verisign.html" instead of "../verisign.html" caused it to look in the my_js folder rather than the root directory.
    relative urls in html (or javascript, regardless of the saved location of the script) will be resolved relative to the user's current location. (it's CSS urls that are parsed relative to the saved location of the stylesheet.)

  6. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,373
    Thanks
    77
    Thanked 3,421 Times in 3,382 Posts
    Blog Entries
    12

    Default

    After a bit of testing, some head scratching, and more testing - it appears that the word 'video' (and it appears 'vid' as well) is/are somehow reserved or otherwise off limits in IE less than 9, at least when used as a window name/target for the window.open() method as it is in the function veripop() - from webitry.net/my_js/veripop.js:

    Code:
    function veripop() {window.open('verisign.html','video','scrollbars=1,statusbar=0,resizable=0,width=450,height=365,left=450,top=200');}
    You can do:

    Code:
    function veripop() {window.open('verisign.html','bob','scrollbars=1,statusbar=0,resizable=0,width=450,height=365,left=450,top=200');}
    And that should be fine in IE and others.
    Last edited by jscheuer1; 08-27-2011 at 03:03 AM.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Tags for this Thread

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
  •