[Laszlo-user] [Laszlo-dev] support for PUT and DELETE, debug mode, et al...
Henry Minsky
henry.minsky at gmail.com
Thu Jun 21 05:25:17 PDT 2007
On 6/21/07, Simon Cornelius P. Umacob <simoncpu at infoweapons.com> wrote:
>
>
>
> Hello,
>
> I've just downloaded Build 5483 of branch Legals to see if I can now use
> PUT and DELETE HTTP verbs (change 20070617-hqm-2). It works beautifully
> in proxied mode. When setting lzproxied=false, however, OpenLaszlo
> debugger gives me the following error:
>
> ERROR: uncaught exception: Permission denied to call method
> XMLHttpRequest.open
> lzx> Debug.inspect(«debugger/LzMessage.lzs#404/15#1| ERROR: ...»)
> «debugger/LzMessage.lzs#404/15#1#0| ERROR: uncaught exception:
> Permission denied to call method XMLHttpRequest.open» {
> file: ''
> line: 0
> message: 'uncaught exception: Permission denied to call method
> XMLHttpRequest.open'
> }
> ERROR: uncaught exception: Permission denied to call method
> XMLHttpRequest.open
> lzx>
Are you trying to load an XML file from a host that is different than the
one you
loaded the app from? If so, that would be a browser security policy
violation, they
don't allow cross-site XMLHTTPRequest by default, although you can set the
security policy manually in the browser. This is a real deficiency of the
browsers, there is a proposal for a permissions file to go onto the servers,
much like the
Flash crossdomain.xml file, but I don't think any of the browsers have
implemented it yet, (except maybe Firefox?)
This occurs in both Flash and DHTML runtimes. When I exported the test
> app as DHTML SOLO, it no longer sends any data to the server. Live HTTP
> Header's output is empty.
>
> Also, another unrelated issue that I found is that when exporting to
> DHTML SOLO, the application will not work if we enable debugging (i.e.,
> <canvas debug="true">). The app will just display spinner.gif without
> proceeding any further.
>
> At closer inspection, the generated DHTML page seems to require
> lps/includes/lfc/LFCdhtml-debug.js. When browsing to that directory,
> however, only LFCdhtml.js exists. Thus, I manually copied
> <OL_install_dir>/lps/includes/lfs/LFCdhtml-debug.js. The app proceeded
> to load, although the debugger window did not appear.
>
>
> Cheers,
>
>
> [ simon.cpu ]
>
>
> --
> And /usr/games/fortune futurama says:
>
> Fry: Things are different this time. Before she was demanding and
> possessive, but now she wants me to do stuff and stay with her all the
> time.
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20070621/52db7bb0/attachment.html
More information about the Laszlo-user
mailing list