It would work, but not be straight forward to include your script in
your html wrapper, because normally the laszlo app runs in its own
iframe.
Perhaps we should allow something like:
<library src="include.js" language="javascript 1.5">
That is, based on the language attribute (which would default to LZX)
the compiler would process or just pass through the library?
On 2007-06-18, at 15:21 EDT, Henry Minsky wrote:
We don't have any really clean way to do that at the moment. I
suppose the
library could be loaded in a custom HTML wrapper which loads also
loads the
app.
Or maybe the loader for the DHTML <import> code we're working on
at the
moment might be repurposeable to load an arbitrary .js library at
runtime.
On 6/18/07, Benjamin Shine <[EMAIL PROTECTED]> wrote:
This seems like a good question, which ought to have a
straightforward answer, but I can't think of it: how do you include a
third-party javascript library in an Open Laszlo application? Tucker?
Max?
Begin forwarded message:
> From: "Khurram Samad" <[EMAIL PROTECTED]>
> Date: June 16, 2007 11:44:07 AM PDT
> To: <[EMAIL PROTECTED]>
> Subject: [Laszlo-user] How to call Java Script from Open Laszlo
>
> Hi
>
> How can we call java script functions from Open Laszlo, if the Java
> Script function is written in some external library. Is there
> something like
>
> <include abc.js> in Open Laszlo ? I only found this work around,
>
> http://blog.driftingschmoe.org/?page_id=57
>
>
>
>
>
> -- Khurram Samad
>
> www.geniteam.com
>
>
>
>
Benjamin Shine
Software Engineer, Open Laszlo / Laszlo Systems
[EMAIL PROTECTED]
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]