[Laszlo-dev] DHTML support for native browser <script> tag ?
P T Withington
ptw at openlaszlo.org
Thu Jun 28 09:05:56 PDT 2007
I know certain people will not like this idea, but I would favor
dispatching on the script tag language attribute:
means pass this straight through
means process with our script compiler
By default, the language is "laszloscript", so you can leave that out.
On 2007-06-28, at 11:25 EDT, Henry Minsky wrote:
> OK I think someone asked a similar question recently, regarding
> inclusion of
> into DHTML apps.
> I am trying out a 3rd party library, and want to put include code
> into my
> app using
> a <script> tag like this
> First question is do I want these to be included at runtime or
> compile time?
> In this case,
> I would like them to be included at runtime, using the browser's
> loading mechanism.
> We recently added a script loaded for supporting <import> libraries in
> DHTML. I can call
> out to Lz.__dhtmlLoadLibrary from my own script block,
> which isn't a bad solution, though I don't know if we're
> advertising this as
> a public API
> But I'm wondering if we want to put some sort of LZX
> language support for this kind of thing to make it easier for DHTML
> developers to integrate their
> 3rd party libraries into LZX apps?
> What I'm proposing might be something which modifies the <script>
> tag, or
> maybe the <import> tag perhaps.
> <import stage="immediate" href="/legals4/dwr/interface/JDate.js"
> I don't really have a good proposal here, anyone have any thoughts?
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com
More information about the Laszlo-dev