[Laszlo-dev] Modifying someView.sprite.__LZdiv.innerHTML

Raju Bitter rajubitter at me.com
Thu Aug 20 13:33:35 PDT 2009


There as a question in the forum on how you can attach custom HTML  
code to a view, not using the HTML tag.
http://forum.openlaszlo.org/showthread.php?p=45147&posted=1#post45147

I suggested to do:

<canvas proxied="true">

	<view id="targetview" width="320" height="260" />
	
	<handler name="oninit">
		<![CDATA[
		var player="<embed type='application/x-shockwave-flash' src='http://videodetective.net/flash/players/player4.3.132.swf?customerid=120000&publishedid=88 
  8439&playerid=69&pversion=4&playlistid=0&videokbra  
te=750&sub=&debug=' pluginspage='http://www.macromedia.com/go/getflashplayer' 
  allowScriptAccess='always' flashvars='allowFullScreen=true'  
allowfullscreen='true' height='260' width='320'></embed>";
		targetview.sprite.__LZdiv.innerHTML = player;
		Debug.write(targetview.sprite.__LZdiv);
		]]>
	</handler>

</canvas>

Is that something which should be done? Seems to work...

- Raju


More information about the Laszlo-dev mailing list