Topics: User Forum
Feb 5, 2011 at 10:15 AM

I am using a page to display some simple contact details, and on the top line I ge:

L PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

Before the start of my page data. This only occurs when I am using the HTMLTable, not on a normal page. The code in the MAIN.PRG is:

    Case oProp.Action=='addressbook'
        Sele * From Addbs(oProp.DataPath) + "AddressBook" Into Cursor tCursor Order by Name ASC
        lchtmlfile = 'addressbook.htm'  && html template
        lchtmlout= Filetostr(oProp.HtmlPath+lchtmlfile)
        lchtmlout= oHTML.htmlTable('addressbook',lchtmlout,30,5,'#E5E5E5',.F.;
        lchtmlout= oHTML.mergetext(lchtmlout)


The HTML code from the page is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="Robots" content="index,follow" />
<link rel="stylesheet" type="text/css" href="Envision.css">


Please help!

Feb 6, 2011 at 9:33 PM

Gotta be something wrong with the HTML template in some way.  Compare it to one of the demo ones that has a table and see where the difference is.  I've found that certain HTML editors can mess things up somewhat.  What editor are you using?? 

Feb 8, 2011 at 3:53 PM

Thanks I got this working, just through starting again and making sure everything was in the right place!