George, I have a php app that returns images to laszlo deployed solo.
Here's an lzx snippet: ///// Create a view and set its resource to the output of the PHP script var view = new LzView(); var image = 'http://www.example.com?vars=WhateverMyChart GeneratorScriptNeedsAsInput'; view.setResource(image); and here's a PHP snippet: ////// Return an image to the solo-deployed laszlo app with a content header that makes the laszlo swf think the image is a flash animation $url = "path/to/file.jpg"; header("Content-Type: application/x-shockwave-flash"); readfile($url); This works for me - your mileage may vary. Matt Hubbard >>> Daniel Salama <[EMAIL PROTECTED]> 06/01/06 10:14 AM >>> You can read the following article divided in 3 parts: http://www-128.ibm.com/developerworks/edu/os-dw-os-php-openlaszlo1- i.html http://www-128.ibm.com/developerworks/edu/os-dw-os-php-openlaszlo2.html http://www-128.ibm.com/developerworks/edu/os-dw-os-php-openlaszlo3.html Enjoy! - Daniel On Jun 1, 2006, at 6:16 AM, Lin George wrote: > Hello everyone, > > > I want to display something -- which is generated by > PHP dynamically (some figures and charts) -- in > OpenLaszlo UI. I am wondering where can I find related > samples? > > > thanks in advance, > George > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > Laszlo-user mailing list > [email protected] > http://www.openlaszlo.org/mailman/listinfo/laszlo-user _______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
