Facebook Application
John Esak
john at valar.com
Wed Dec 16 08:33:52 PST 2009
I *hate* to agree with Mark. :-) But I had already written exactly the same
thing as he did... But then I read forward in the thread just to see what
everyone else had said... So I dleeted my response. Really, using the I/O
routines to open() and then writeline() every line just the way you want it
then close() and you have the most control possible.
I do have a lot of old processes that make quicky html pages out of simple
filePro data... Using the filePro HTML commands, but only because when I
wrote those, I didn't know any better.
John
> -----Original Message-----
> From: filepro-list-bounces+john=valar.com at lists.celestial.com
> [mailto:filepro-list-bounces+john=valar.com at lists.celestial.co
m] On Behalf Of Bruce Easton
> Sent: Wednesday, December 16, 2009 10:48 AM
> To: filepro-list at lists.celestial.com
> Subject: RE: Facebook Application
>
> 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.
>
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
More information about the Filepro-list
mailing list