HTML commands
Bruce Easton
bruce at stn.com
Thu May 16 16:21:16 PDT 2013
Chris, with version 5.014 of filepro, if, for example, ab is a dummy
field, you can use:
Then: html :tx ab
or
Then: jsfile :tx ab
to output just about any value of ab as-is.
BUT you need to be consistent for each output document that you are
outputting - that is open, write to, then close the output file with one
technique or the other - don't mix html commands with jsfile commands
with filepro's file functions.
BUT, just opening and writing one line with "html :cr" html :tx yyyyy,
and closing it with "html :cl", will create five lines of output with
the <HTML>, <HEAD>, </HEAD> and </HTML> being supplied by filepro
automatically.
I prefer to have total control of the output, so I use jsfile which only
outputs the lines for which I used a "jsfile :tx" command. So for
instance if I am creating an input form, I will do so with some code
like this:
@menu Then: '<some parsing routine perhaps to parse input data from
previous input form request>
Then: '<some transaction processing perhaps based on what
was parsed - i.e., maybe updating a record>
Then: jsfile :cr "somedir/somefile"
Then: jsfile :tx "blah blah blah" 'where this is
everything for the doc - headers, JS, CSS, HTML, etc.
(and this could be hundreds of lines starting
with just "jsfile :tx" to output the entire html document)
Then: jsfile :cr- 'finally close the file like this
Then: 'maybe some commands here to close files opened by
lookups if needed, then
Then: exit
So this way you only need three commands of this type to output
everything: jsfile :cr, jsfile :tx and jsfile :cr-.
You can also use filepro's OPEN(), WRITELINE() and CLOSE() I/O functions
to also take complete control of what is output.
Bruce
On 5/16/13 6:24 PM, Chris Rendall wrote:
> I'm running filePro 5.0.14 and I'm trying to use the HTML commands. I'm using jQuery and HTML5, but there a lot of HTML commands that don't seem to be native to filePro, like the <label for... > tag.
>
> Is there a way to get filePro to return HTML tags that aren't built in? I've tried using :ZZ by itself, but that gave me an error. Do newer versions of filePro have more HTML commands?
>
> --- Chris
>
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
More information about the Filepro-list
mailing list