html commands

Fairlight fairlite at fairlite.com
Wed Oct 10 15:10:39 PDT 2007


Four score and seven years--eh, screw that!
At about Wed, Oct 10, 2007 at 12:52:56PM -0700,
Enrique Arredondo blabbed on about:
> Hi
> 
> I need to display an address on a Table cell that I'm creating using 
> filepro's html commands, but I'm using "html id :se ....html id :op Name..
> html id :op address...and so on.....html id :td-"
> 
> Is there an easy way of displaying and address that you know of ?
> 
> Here what I want to display on the cell :  Name
>                                            Address
>                                            City, ST ZIP

<td>Name<br>Address<br>City, ST ZIP</td>

Convert that into the gibberish fP calls its own HTML code, and you're set.

> Or If I still keep using the :se command, How can I tell it to display 
> it's contents without having to click on the "selection open arrow"

I'm guessing from context that you're putting it into a <select> box with
one <option> containing each line?  If that's the case...

Short answer:  Wrong kind of widget for display purposes, if you're trying
to put one line of an address per <option> tag.  That's just plain the
wrong widget.  Use an appropriately sized <textarea> instead for saner
coding and results if you decide you even need a widget at all (the first
answer above with <br> totally negates the need).

Answer you probably want even though it's "wrong" (it works, it's just
-not- wise design to use this as a display method):  Set the number of
options to display to as many lines as you need visible.  In -real- HTML,
this would be an attribute of size="3" on the <select> tag, to get all
three lines.  Again, convert to that other stuff, and you're set--even if
it's abusing the heck out of a widget not even remotely meant for such a
task.

> Do I make sense ?

You're using fP's pseudo-HTML markup stuff.  You don't want the answer.  :)

Seriously, it's far easier to just learn the real thing and use simple raw
I/O functions, than deal with the vagaries of how to make HTML work "fP's
way".  That's only going to continue to be more and more true as newer
revisions of the draft spec are released over the years.  I believe Alan
Mazuti is addressing this very topic at the conference in a month.

However, YMMV--or at least your perception of your mileage may vary.

mark->


More information about the Filepro-list mailing list