CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2007
    Posts
    47

    Question avoiding popup blockers

    hi...

    i have this problem...
    i created a web site... in one page i save in a session var a byte array... and in that page i call a popup window, in the popup window i load that session var and print it...
    Response.ContentType = "application/pdf";
    Response.OutputStream.Write(var,0,var.length)

    and it works fine.
    but i published it yesterday in internet, and popup window wont open! iexplorer blocks it... with firefox 2 it works correctly but with iexplorer 7 doesnt, even deactivating iexplorer's popup blocker!
    why could this be happening?

    i think i could get this done also by opening a new blank window instead of popup but i dont know how to do it...

    any suggestions?
    thanks in advance...

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: avoiding popup blockers

    All popup blockers block any window opened without user interaction. In other words they have to open by a link or onclick. If there was a way around this, then all advertisers and spammers would use those and then the whole point of having a popup blocker has been compromised.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Aug 2007
    Posts
    47

    Resolved Re: avoiding popup blockers

    yes...
    i had to get it done by using a hyperlink button with a _blank target... instead of a window.open
    thanks

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

Featured