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/14/2012
03:26:20 AM
3GE07DEDH Show this entire thread in new window
Gratar Image based on email address
From:
To:
Attachments:
None

Just FYI, cf. this.wcHTMLgen()" is not in the prop descriptons in my PEM. It just says Object custom HTML.

Also I noticed that the wconnect.h you just shipped does not have the #INCLUDE WCONNECT_OVERRIDE.H command



That's the reason why you could not see a change.

In case of doubt, we recommend reading code inherited from aw.vcx!aw??? where you can find some documentation and code samples. We view this as the best place where documentation can be, as you can access it at any time while coding.

Another hint is in the .wcHTML property description: "cf. this.wcHTMLgen()"

Feel free to suggest how this documentation could better fit your needs



I was setting it at design time by just changing the property. I did not run any code.


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 class="red" title="Ce label a généré son propre HTML spécifique / This label generated its own specific HTML" ></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?









Viewing all articles
Browse latest Browse all 10393

Trending Articles