Sorry, I misread this. I didn't realize that you were trying to call functions in OL's embed.js. The syntax below is for embedding a javascript library into your laszlo app.
You can call browser javascript using LzBrowser. http://www.openlaszlo.org/lps/docs/reference/lzbrowser.html#meth-loadJS A On Dec 11, Adam Wolff wrote: > I think you want > > <script src="embed.js"/> > > A > > On Dec 11, mt1 wrote: > > > Anyone let me know, please. > > > > > > mt1 wrote: > > > > >Hi forks, > > > > > >Can i use a functions, that contained embed.js file, in <canvas> ? > > >I mean as following > > > > > ><canvas> > > ><script> > > >LzBrowser.loadJS( "../lps/includes/embed.js" ); > > ></script> > > > > > ><view> > > ><handler .....> > > >lzSetCanvasAttribute( ..... ); > > ></handler> > > ></view> > > ></canvas> > > > > > >If this work, it is possible to change the canvas attribute values while > > >a application working. > > >But dose not work it. Is there any tips or the canvas attribute can not > > >change after the application > > >has initialized ? > > > > > >Thanks in advance > > >mt1 > > > > > > > > > > > > > > > > >
