Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: generating different HTML

$
0
0
Re: generating different HTML
FoxInCloud
Re: generating different HTML
03/13/2012
09:17:44 AM
3GD0JXC6N Show this entire thread in new window
Gratar Image based on email address
From:
To:
Attachments:
None
This code works on http://foxincloud.com/demos.php (v 1.10), 'Clients' label
LPARAMETERS toHTML AS awHTMLGen of awHTML.prg, tlInnerHTML && toHTML : reference to foxInCloud HTML generator && tlInnerHTML : if container, render only contained objects * this demonstrate how any VFP object can render its own specific HTML in foxInCloud * this method can be implemented at any class or object level && each aw.vcx "base class" owns cHTML and cHTMLgen() members this.wcHTML = Textmerge([<p <<toHTML.cIDattrib()>> class="red" title="Ce label a généré son propre HTML spécifique / This label generated its own specific HTML" <<toHTML.cStyle('position,font,dimension')>>><<m.this.Caption>></p>]) && toHTML.cID() returns the standard foxInCloud [id=""] string && toHTML.cID() builds id as: 'formName'-'containerName'-...-'objectName'

Could you by any chance post your code ?

this.wcHTML does not replace the generated HTML when I do it. If I put something like:

wcHTML='<input blah blah><some tag><some tag 2>'

Nothing changed in the generattion.


this.wcHTML = "custom HTML to replace generated HTML"
toHTMLgen.cHTMLadd = "HTML to be added to generated HTML"
toHTMLgen.lHTMLaddInside = <if this a containing element, add toHTMLgen.cHTMLadd inside generated HTML>

I ended up ding this in wcHTMLgen:

toHTMLgen.cHTMLadd = "My new HTML"

But then what use is the wcHTML property?


Version 1.10 has changed nothing in this process
Can you post your wcHTMLgen() code?

I thought I had done this previously, maybe something changed in 1.10 or I forgot how I did it. I want to put my own HTML in a control instead of the FiC generated HTML.

I filled in he property wcHTML, but still the FiC standard HTML generates and not my HTML. What did I miss?






-- thn (FoxInCloud)


Viewing all articles
Browse latest Browse all 10393

Trending Articles