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