Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: Popups in IE

  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer Popups in IE

    Ok, I am a web developer kinda who uses the Mac operating system. My browser of choice is Camino (firefox) so thats what I usually end up testing on.
    Today, i booted up parallels (windows) and tested out one of my sites in IE6.

    My popup code uses window.open(blah,blah,blah)

    the code has errors in it accoring to IE. I can't give more details than that because I simply don't know what is wrong. Here is the site:

    http://citron-guitars.com/soundclips.html

    click on one of the clips to open up the popup.. it should work in everything except for IE...

    so, what is wrong... how do i fix it?

    Thanks!

  • #2
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,746
    Thanks
    0
    Thanked 244 Times in 239 Posts
    Hi there neutrino15,

    and a warm welcome to these forums.

    IE does not like the whitespace here...
    Code:
    
    <a href="javascript:openWindow('SoundFiles/Swallow.html', 'Harvey Citron Enterprises', 'height=50, width=300, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no')">Steve Swallow</a> 
    
    ...change it to something like this...
    Harvey_Citron_Enterprises
    ...or this...
    HarveyCitronEnterprises
    coothead

  • #3
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    The argument you're seeing/sending as a title is the NAME of the window, as addressable via script. As such, spaces don't work very well.
    http://msdn.microsoft.com/workshop/a...ods/open_0.asp

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #4
    Regular Coder
    Join Date
    Sep 2005
    Posts
    535
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Wow! You're right! I never noticed that bug in IE before...
    It's a stupid little thing, too! I guess in IE you can't have a space in the name of the window. Thus just change it to:

    Code:
    openWindow('SoundFiles/Give_Thanx.html', 'HarveyCitronEnterprises', 'height=50, width=300, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no')
    Go figure... :angry: Maybe IE 7 will be nicer...
    If you want answers, write a smart question.

    Yes, someone probably does know how...

    Oh, and if you want to learn, STFW!

  • #5
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    wow

    WOW... just wow..

    People really need to switch AWAY from ie.. I wish that some large company like google would put a switch to firefox button on their homepage...

    thanks tho!!!
    Last edited by neutrino15; 12-29-2006 at 09:12 PM. Reason: thanks!

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    TBH I think IE is doing the right thing. Think about it would put a space in the name attribute of an input element? Not likely. Would you create a variable in javascript that was more than one word? Not likely. If you did the script would probably fail.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

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