FNC control types do not have a direct HTML element equivalent, hence, can't be easily mapped on it. If you want to put the controls on a specific position in a HTML template, put the FNC control in a TWebHTMLDiv and map the TWebHTMLDiv on a HTML DIV element in the template.
I'm not sure what you mean with "references"
TTMSFNCChart maps on a HTML5 CANVAS element in a TMS WEB Core web client application.
Thanks for your reply. I mean available examples that have used FNC charts, e.g. line, bar...
You can see a web demo here:
im going to hijack this thread to ask where you find the "TWebHtmlDiv"?
This is in WEBLib.WebCtrls.pas
Yes, its there. I'm not really sure how to "drop" it on a form now though?
It is strange you do not see it in the tool palette.
Can you create this control at runtime?
I do not see it in the tool palette, neither by searching the name nor by manually looking so to say.
It is very strange, the component should be registered for the tool palette and that registration happens in a register unit. That you already add the unit in a project unit uses list shouldn't matter.
Thats allright now, atleast it works for me now. Thanks a lot either way.
problem cause is that the span is getting the "position: absolute" attribute when it should in that case get the "position: relative", so basically inheriting from its parent.
You can do this with:
not working for me.
Don't you see the position attribute of the outer SPAN element change?
no. the outer span still has position: absolute.
by the way, browser cache gets cleared on every reload because i had a problem with cached data before. so that should not be the problem.
Sorry, I confused, the code to use is: