How to get PHP to pass colored text to RTF text in Revolution?

Jim Ault JimAultWins at yahoo.com
Mon Nov 26 00:54:35 EST 2007


you want the 

HTMLText property,  in the dictionary.

 Important!  The HTMLText property uses a tag structure that is HTML-like,
but is not completely standard HTML, in order to accommodate the full range
of text styling available in Revolution.

thus
set the htmltext of fld "dataTbl" to theStringSentFromPhp

Jim Ault
Las Vegas

On 11/25/07 8:05 PM, "rgould8 at aol.com" <rgould8 at aol.com> wrote:

> I have php code from my server passing data into a rich-text field in a
> standalone Revolution stack.? Presently, it does it something like this:
> 
> put URL "http://urltomyserver/getdata.php" into field "rtfoutput"
> 
> This is a text field which is set up as a table with columns.
> So far, this works well for me, but now I need the text field to have
> different colored text data for some of the columns in this text field.
> 
> The only way I can think to do this is to do something like has the PHP code
> pass data to revolution for the field like:
> 
> <?php
> echo "<rtfcode for green>This text is green<rtfcode for red>and this text is
> red in the same column.";
> ?>
> but I have no idea what would need to get passed to do such a thing.?
> 





More information about the use-livecode mailing list