<html> is a <view> that displays HTML pages.
For best results in Flash, set the wmode attribute to 'transparent' when embedding the application. See examples/extensions/html-swf.jsp
for an example. See examples/extensions/html.lzx for an example of embedding <html> in a window.
<canvas>
<view y="50" width="100%" height="300" bgcolor="blue" onmousedown="res.apply()" onmouseup="res.remove()">
<resizestate name="res"/>
<dragstate name="drg"/>
<text width="100%" bgcolor="gray" onmousedown="parent.drg.apply()" onmouseup="parent.drg.remove()">Drag here</text>
<html id="ht" src="http://google.com/" x="15" y="15" width="${parent.width - 30}" height="${parent.height - 30}"/>
</view>
</canvas>
html extends <view>,
which is the fundamental visual class of LZX.
| Name | Type (tag) | Type (js) | Default | Category |
|---|---|---|---|---|
framename
|
string | String | read/write | |
| Sets the name/target of the html iframe. | ||||
history
|
expression | Boolean | true | read/write |
| If true, the html tag will set browser history. | ||||
loading
|
boolean | Boolean | false | readonly |
| If true, the html tag is currently loading | ||||
minimumheight
|
number | Number | 0 | read/write |
| The minimum height of the iframe: embedded swfs won't load with a size less than 1 | ||||
minimumwidth
|
number | Number | 0 | read/write |
| The minimum width of the iframe: embedded swfs won't load with a size less than 1 | ||||
mouseevents
|
boolean | Boolean | true | read/write |
| If true, attempt to listen for mouse events on the iframe. Cross-domain security restrictions apply, so if the content loaded in the iframe is from a different domain, mouse events won't be sent. | ||||
ready
|
expression | Boolean | false | readonly |
| If true, the html tag is ready to receive commands | ||||
scrollbars
|
boolean | Boolean | true | read/write |
| If true, the html tag will have scrollbars. | ||||
shownativecontextmenu
|
boolean | Boolean | true | read/write |
| If true, show native context menus in the iframe. Otherwise, show OpenLaszlo context menus. Note that this only works in DHTML because it's not possible to programatically display a context menu in Flash. | ||||
src
|
text | String | read/write | |
| Sets the URL the html tag should load | ||||
target
|
expression | lz.view | this.parent | read/write |
| Sets the view to listen to for x/y/width/height change events. Defaults to this.parent. | ||||
visible
|
boolean | Boolean | true | read/write |
| Sets the visibility of the html tag | ||||
aaactive, aadescription, aaname, aasilent, aatabindex, align, bgcolor, cachebitmap, capabilities, clickable, clickregion, clip, context, contextmenu, cornerradius, cursor, fgcolor, focusable, focustrap, font, fontsize, fontstyle, frame, framesloadratio, hassetheight, hassetwidth, height, layout, loadratio, mask, opacity, pixellock, playing, proxyurl, resource, resourceheight, resourcewidth, rotation, shadowangle, shadowblurradius, shadowcolor, shadowdistance, showhandcursor, source, stretches, subviews, tintcolor, totalframes, unstretchedheight, unstretchedwidth, usegetbounds, valign, visibility, visible, width, x, xoffset, y, yoffset
classroot, cloneManager, datapath, defaultplacement, id, ignoreplacement, immediateparent, inited, initstage, name, nodeLevel, options, parent, placement, subnodes
Methods
| bringToFront() |
|---|
| callJavascript() |
|---|
| Parameter Name | Type | Description |
|---|---|---|
| methodName | String | The name of the method to call |
| callbackDel | lz.handler | An optional LzDelegate which will be called with the return value from the method call. |
| ...args |
| restoreSelection() |
|---|
| scrollBy() |
|---|
| sendToBack() |
|---|
| storeSelection() |
|---|
bringToFront, containsPt, getAttributeRelative, getBounds, getColor, getColorTransform, getContextMenu, getCurrentTime, getDepthList, getDisplayObject, getID3, getMouse, getNextSelection, getPan, getPrevSelection, getProxyURL, getTotalTime, getVolume, init, isBehind, isInFrontOf, isMouseOver, measureHeight, measureWidth, play, proxyurl, releaseLayouts, searchSubviews, seek, sendAAEvent, sendBehind, sendInFrontOf, sendToBack, setAAActive, setAADescription, setAAName, setAASilent, setAATabIndex, setAccessible, setAlign, setAttributeRelative, setBGColor, setClickable, setColor, setColorTransform, setContextMenu, setCursor, setHeight, setLayout, setOpacity, setPan, setPlay, setProxyPolicy, setProxyURL, setResource, setResourceNumber, setRotation, setShowHandCursor, setSource, setValign, setVisibility, setVisible, setVolume, setWidth, setX, setXOffset, setY, setYOffset, shouldYieldFocus, stop, stretchResource, unload, updateResourceSize
animate, applyConstraint, applyConstraintMethod, applyData, childOf, completeInstantiation, construct, createChildren, dataBindAttribute, destroy, determinePlacement, getOption, getUID, init, lookupSourceLocator, releaseConstraint, releaseConstraintMethod, searchImmediateSubnodes, searchSubnodes, setData, setDatapath, setOption, setSelected, updateData
onaddsubview, onblur, onclick, onclickable, onclip, oncontext, oncornerradius, ondblclick, onerror, onfocus, onfont, onfontsize, onfontstyle, onframe, onframesloadratio, onheight, onkeydown, onkeyup, onlastframe, onload, onloadratio, onmousedown, onmousedragin, onmousedragout, onmouseout, onmouseover, onmousetrackout, onmousetrackover, onmousetrackup, onmouseup, onmouseupoutside, onopacity, onplay, onremovesubview, onresource, onresourceheight, onresourcewidth, onrotation, onshadowangle, onshadowblurradius, onshadowcolor, onshadowdistance, onstop, ontimeout, ontintcolor, ontotalframes, onunstretchedheight, onunstretchedwidth, onvisibility, onvisible, onwidth, onx, onxoffset, ony, onyoffset
Copyright © 2002-2009 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.