Ken,

I doubt that you can set this at the Qooxdoo level because it's a
security feature outside of the page itself in the browser
functionality.  Imagine how it would compromise security if browser
applications could override this setting at will!

However, users CAN set popups to be allowed on a per-site basis in
Internet Explorer in the popup options dialog.  For the visitors using
Internet Explorer that might come to your site, they're likely to
already know about this issue, but you should warn them somehow before
taking the application action so that your Qooxdoo app doesn't reload
after the popup failure.  Internet Explorer reloads the page to retry
the automatic popup, assuming the application page initiated the popup
on page load rather than from some Ajax action.

Sorry to be the bearer of bad news,

   Gene

On Fri, 2009-10-02 at 11:10 -0400, Ken MacDonald wrote:

> Hi, I inherited a number of qooxdoo projects, they all have a problem
> with IE (8 & 6, at least). 
> 
> In my app, I can select a bunch of options, go thru a bunch of menus
> and get a result that I want to print. 
> 
> After clicking my print button, app makes a call to the server, which
> creates a .pdf file there. It calls back to qooxdoo with the url of
> the file so that the .pdf can be displayed locally. Works great on FF
> and several other browsers, but in IE, I always get this drop down box
> at the top of the IE window which tells me that IE is blocking
> 'potentially dangerous content' - my .pdf. 'Click here for
> options...'. If I click, I get an option to 'download file'. If I
> click that, IE decides that it'll reload the page back to square one,
> losing all of the menu selections I made earlier, AND it doesn't even
> display the PDF!
> 
> After the first time this happens, I can select my stuff all over
> again, click print and a dialog pops up asking if I want to display
> 'xxxxxxxx.pdf' in Adobe Reader, and everything looks great. Next time
> I bring up the app from scratch in IE, I go thru the same problem
> again - always losing my first PDF and menu settings.
> 
> I'm hoping there's a setting I can use in qooxdoo that will tell IE
> that this is allowable content that I requested. IE settings would be
> a very poor second, as we expect this to be used by the general public
> and don't want to have to tell them to change their settings so they
> can use our site, and can't ask them all to use FF! Here's about all
> of the relevant client-side code:
> 
> defines a non-visible frame to display the .pdf....
> 
>       // defines invisible download frame.
>       this.dlFrame = new qx.ui.embed.Iframe("");
>       this.viewer.add(this.dlFrame, {row: 1, column: 5});
>       this.dlFrame.set({
>             width: 0,
>             height: 0,
>             decorator : null
>       });
> 
>  ....... and the call back after server gen's the .pdf
> 
>     printPdfLink: function(pdfUrl)  // callback from server with url
> of .pdf
>     {
>         if (this.dlFrame.getSource() === pdfUrl)
>         {
>             this.dlFrame.resetSource();
>         }
>         this.dlFrame.setSource(pdfUrl);
>     },
> 
> Thanks for any suggestions....
> Ken
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________ qooxdoo-devel mailing list 
> [email protected] 
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to