Results 1 to 11 of 11

Thread: window.open

  1. #1

    Thread Starter
    Lively Member illebille's Avatar
    Join Date
    Sep 2003
    Posts
    77

    Question window.open

    when i click on a text-field in my html-file, I want to open another HTML-document in a new window, so I use

    [JSCRIPT]
    window.open('MyForm.htm','', 'width=800, height=700, status=no, toolbar=no, menubar=no, scrollbars=yes');
    [/JSCRIPT]

    Problem : it doesn't open !!

    Is there something in XP(professional ed) that blocks this line ?
    'cause i already tried it on XP Embedded, and it worked just fine !

  2. #2
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: window.open

    perhaps its a popup blocker.. happens to me often.

  3. #3

    Thread Starter
    Lively Member illebille's Avatar
    Join Date
    Sep 2003
    Posts
    77

    Re: window.open

    I already tried to turn off the firewall ; I've set the security level low ; I turned the popup-blocker off,...
    nothing helped ; I still can't get it to open !

    and it still is giving me this damn message :
    "To help protect your security...blablabla"
    I DON4T WANT IT TO HELP !

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: window.open

    Start by detecting whether a popupblocker is enabled (it is in your case)

    Javsacript:
    PHP Code:
    var testwin window.open('','','width=1,height=1,left=0,top=0,scrollbars=no');
     if(
    testwin)
        var 
    hasblocker false;
     else
        var 
    hasblocker true;
    testwin.close(); 
    You can then look at the value of hasblocker and if it is true, display a message to the user that he has popup blockers enabled and will need to disable them or allow them for this site in order for your site to 'function properly.'

  5. #5

    Thread Starter
    Lively Member illebille's Avatar
    Join Date
    Sep 2003
    Posts
    77

    Re: window.open

    I just tried this out, and guess what ...

    although hasblocker is false, IT STILL DOESN'T OPEN !

    I hate XP !

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: window.open

    Post a snapshot.

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: window.open

    I want to see this snapshot too: "To help protect your security...blablabla"

  8. #8

    Thread Starter
    Lively Member illebille's Avatar
    Join Date
    Sep 2003
    Posts
    77

    Re: window.open

    This is what i get when i open my main-screen.

    I then right-click on the message, choose "Allow Blocked Content", and the message disappears.

    But clicking on one of the textfields (which should normally open the next form) does absolutely nothing, except for a short blink of the main form.


    Due to the same "bug", I can't seem to attach anything to my posts neither...

    The complete message is :
    "To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer. Click here for options..."

  9. #9
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: window.open

    Try this:

    After you "Allow BLocked Content", refresh the page. Then try clicking on one of the textfields.

  10. #10

    Thread Starter
    Lively Member illebille's Avatar
    Join Date
    Sep 2003
    Posts
    77

    Re: window.open

    Nah...
    everything stays the same (except for the message that disappeared)

  11. #11
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: window.open

    1. Does it work in other browsers like FireFox and FireFox (and FireFox too)?

    2. Is the page online somewhere where I can take a look?

Posting Permissions

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



Click Here to Expand Forum to Full Width