Facebook Application
Bruce Easton
bruce at stn.com
Wed Dec 16 07:48:16 PST 2009
Fairlight wrote Wednesday, December 16, 2009 10:11 AM:
> mtauber19 at comcast.net blabbed on about:
> > I am working on a facebook application using fpcgi. I need
> the first
> > two lines of the html document rendered by the fpcgi program to be
> >
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> > <html xmlns="http://www.w3.org/1999/xhtml"
> > xmlns:fb="http://www.wzhu.devrs002.facebook.com/2008/fbml">
> >
> > When I use the filepro command:
> >
> > html "1" :CR @pw{".htm" :TI "Title"
> >
> > The page that is rendered has the html tag rendered as <html>
> >
> > I would appreciate any suggestions to resolve this.
>
> Rntirely give up on fP's HTML pseudo-markup language. At
> -best-, it's HTML 3.2, and even then it's not complete.
>
> Use open/writeline/close and just output the correct code at
> the low level as you assemble it.
>
> mark->
> --
My 5.0.14 online help shows a :dt option to the HTML :cr command
and it also shows a :tx option (which should just output whatever
you say still inside the <HTML tag). But I don't know if output from
using those, if they work as expected, would satisfy the need of
the application (even if the tags were not exactly as you specified).
I usually open the output document with HTML :cr and then issue nothing
but html :tx commands thereafter, until a html :cl to close the file.
(This keeps you from having to learn most of the native fp html
commands, but does not address your problem.
Therefore, I agree with Mark. Especially in this case - why fight with
a new language when you just need to have filePro output the lines
exactly as they have been already specified for you. Of course
if you already have a lot of other code in the filePro-HTML-command
format, then you might want to see if you can get the options to
"HTML :cr" working for you.
Bruce
Bruce Easton
STN, Inc.
More information about the Filepro-list
mailing list