<br><br><div class="gmail_quote">On Tue, May 12, 2009 at 2:56 PM, Gregory Denton <span dir="ltr"><<a href="mailto:greg.denton@gmail.com">greg.denton@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Revisiting this topic searching for cleaner SOLO REST support: I'm not<br>
a Flash programmer so don't know the lingo here, but...<br>
<br>
Is is possible to "run in the AIR player environment" with a<br>
laszlo-compiled app? How is this done? What are the other<br>
benefits/drawbacks?</blockquote><div><br></div><div>I haven't tried running with the AIR runtime yet. I am not sure whether the lzc compiler would need to be tweaked to link against some extra libraries, I'd need to look at the AIR documentation and see how</div>
<div>they invoke the flex compiler. </div><div><br></div><div><br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<br>
Alternatively, has anyone had any luck integrating AJAX calls outside<br>
laszlo with a laszlo-compiled app?<br></blockquote><div><br></div><div>That's an interesting idea. I suppose if you wanted to pass XML data from the browser javascript into the Flash application, you'd have to pass it as a string, and parse it in the Flash player. </div>
<div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Thanks.<br>
<div><div></div><div class="h5"><br>
On Mon, Mar 2, 2009 at 3:51 PM, Henry Minsky <<a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a>> wrote:<br>
> In the DHTML runtime, you may use any REST request method.<br>
><br>
> The Flash 8 player just does not natively support anything besides<br>
> GET and POST,and it appears that flash 9/10 won't do PUT or DELETE<br>
> either, unless you are running in the AIR player environment. For the<br>
> Flash 9 player in a regular browser, it appears to be limited to GET<br>
> and POST, at least according to how I read the AS3 documentation.<br>
><br>
> Note however, , if your application is making proxied request rather<br>
> than a SOLO request, the proxy server (LPS) can perform the REST PUT<br>
> or DELETE methods. So if you are willing to deploy your application<br>
> with proxied<br>
> data requests, then you could use these methods in a Flash application.<br>
><br>
> [regarding the Flash 9 player, here's what the AS3 docs say for<br>
> flash.net.URLRequest]<br>
><br>
> method property<br>
> method:String [read-write]<br>
> Language Version : ActionScript 3.0<br>
> Runtime Versions : AIR 1.0, Flash Player 9<br>
> Controls the HTTP form submission method.<br>
><br>
> For SWF content running in Flash Player (in the browser), this<br>
> property is limited to GET or POST operation, and valid values are<br>
> URLRequestMethod.GET or URLRequestMethod.POST. For content running in<br>
> Adobe AIR, if the content is in the application security domain, you<br>
> can use any string value; otherwise (if the content is not in the AIR<br>
> application security domain) you are still restricted to using GET or<br>
> POST.<br>
><br>
> Note: If running in Flash Player and the referenced form has no body,<br>
> Flash Player automatically uses a GET operation even if the method is<br>
> set to URLRequestMethod.POST.<br>
><br>
> The default value is URLRequestMethod.GET.<br>
> On Mon, Mar 2, 2009 at 5:19 PM, doug livesey <<a href="mailto:biot023@gmail.com">biot023@gmail.com</a>> wrote:<br>
>> Hi -- from scouting around the net, it looks like maybe Laszlo won't support<br>
>> proper REST, as it doesn't support any verbs apart from GET and POST.<br>
>> Is that correct?<br>
>> How are people getting around it?<br>
>> I'm a Rails developer, and for me to be able to embrace Laszlo, I'll really<br>
>> *need* REST.<br>
>> Cheers,<br>
>> Doug.<br>
>><br>
><br>
><br>
><br>
> --<br>
> Henry Minsky<br>
> Software Architect<br>
> <a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br>
><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br><br>