nageswaragunupudi wrote:I was also looking for showing html from FW and I found this function on the forum and was playing with it.
Please consider using the built-in FWH function
- Code: Select all Expand view
HTMLVIEW( cHtmlFile ) // give full path of the file
Works also for me !
But is seems that just as the other option that HTMLVIEW also needs a file with a Path and HTML code inside it to work. Ok for viewing links, websites,...
I my case I browse a Xbrowse that has a field inside a memo that has HTML code to build a table based on data. So, when moving the browse, I want the dialog where the html is showing to refresh with new data
For now I think I can move the browse, save the htmlcode to a file and then call the htmlview with the updated htmlcode. Should work, but maybe there can be updated function that will show plain html data from a
variable data.
When cTemp = used, htmlview will also startup google and give a result of a google seek for the code (cTemp = used as a seeking parameter)
- Code: Select all Expand view
function htmlzien(cFile,oWnd1)
cTemp = '<head><link rel="stylesheet" href="temp.css"></head><table class="styled-table"><thead><tr><th>36</th><th>38</th>'
cTemp += '<th>99</th><th>42</th><th>44</th></tr></thead><tbody><tr><td></td><td>1</td><td>1</td><td>1</td><td>2</td></tr></tbody></table>'
htmlview(cTemp)
// htmlview(cTemp,"Titel",oWnd1,10,10,400,350)
//htmlview(cFile,"Titel",oWnd1,10,10,400,350)
Return