Xbasic
a5_show_htmlchrome Function
Syntax
V a5_show_htmlChrome(C html [,C dlg_title [,C styleName [,L loadAlphaJSLibraries ]]])
Arguments
- htmlCharacter
The HTML to render.
- dlg_titleCharacter
Default = "". The window title. Shown in the title bar of the popup window that displays the page.
- styleNameCharacter
Default = "". The name of the style used to render the HTML. E.g. "GrBlue" or "Alpha". If a style name is provided or loadAlphaJSLibraries is .t., the following style placeholders (if present in the HTML) will be replaced with the style name before rendering the page:
- {grid.style_name}
- {dialog.style_name}
- {style}
- {style_name}
- {grid.style}
- {dialog.style}
- loadAlphaJSLibraries
Default = .f.. If .t., loads the Alpha Anywhere JavaScript Libraries into the browser.
Description
Displays HTML content using chrome.
Example
stylename = "GrRed" dim cn as sql::Connection cn.open("::Name::AADemo-Northwind") cn.execute("SELECT CustomerId, Address, City, Country FROM CUSTOMERS") dim html as p = a5_Generate_HTML_table(cn.ResultSet,stylename,14) ' Show the HTML a5_show_htmlchrome(html.htmlTable,"",stylename)
Limitations
Development/Desktop Environment Only