Dacquay, Eric schrieb:
> Hi Stefan,
>
> I thought of doing something like that but that would require
> duplicating some logic on the backend (in C++) which is already on the
> browser side (in javascript) to generate the report.  I am most likely
> going to be going that route in the future but I was hoping to avoid
> doing this initially as it would require more time than I really have to
> work on this app.
>
> Thanks
>
> Eric
>   
You can open a new native browser window and write its contents from 
JavaScript using innerHTML or DOM manipulation. This way you could reuse 
some of your JS logic. Right now it is not possible to create qooxdoo 
widgets in this other window.

Best Fabian


> On 12/3/2008 11:24 AM, Stefan Volbers wrote:
>   
>> Hi Eric,
>>
>> not quite the same thing but somewhat comparable:
>> having to produce a printable report out of my qooxdoo app, I have an
>> event listener on a clickable button which opens an external native
>> browser window with the location of a (PHP-) script like
>>
>> var reportbutton = new qx.ui.form.Button("Create report");
>> reportbutton.addListener("execute", function() {
>>     var url = "http://"; + location.host + reportpath +
>>       "report.php?target=" + target;
>>     window.open(url, "_blank");
>> }, this);
>>
>> This in turn (mis-)uses my RPC classes to retrieve the database
>> information needed in the report and thus creates a PDF from the
>>     
> results.
>   
>> So I'm creating the external page not with qooxdoo, but with PHP, and
>> the result is not HTML, but PDF. Nonetheless I get printable results
>>     
> in
>   
>> an external page.
>> I am sure anything similar could be achieved with any server scripting
>> language like Perl or Java or Ruby or whatever.
>>
>> If you definitely need to create the page with qooxdoo means, I'm
>>     
> afraid
>   
>> I can't help you there - I am not so sure about the printability of
>> qooxdoo-apps anyway... can anyone comment on that?
>>
>> Bye,
>> Stefan
>>     
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>   


-- 
Fabian Jakobs
JavaScript Framework Developer

1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas 
Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss, Achim 
Weiss
Aufsichtsratsvorsitzender: Michael Scheeren


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to