Jump to content


Photo

Problems with TUniHTMLFrame and Chart.js

HTMLFrame chart

  • Please log in to reply
1 reply to this topic

#1 MarBar77

MarBar77

    Member

  • Members
  • PipPip
  • 19 posts

Posted 11 February 2018 - 08:52 PM

Hi,

 

I have 2 issues regarding using chart.js in TUniHTMLFrame. Maybe someone can help.

 

Below is link to download simple example.

 

https://1drv.ms/u/s!...wGecaHHSy_0FdMQ

 

Issue 1: Loading HTML from index.html file does not work correctly. The loaded file is not displayed or not displayed correctly. Only when i reloed the file for few times then content is displayed correctly in UniHTMLFrame (click few times button LoadChart to get result like in index.html file, which is located in exe directory).

 

Issue 2: When you load index.html directly in the browser then mouse scroll makes chart zooming, but when i load index.html to TUniHtmFrame then zooming is not working.

 

If someone can download it and give me some tips what is wrong with it?

 

Marcin

 


  • 0

#2 MarBar77

MarBar77

    Member

  • Members
  • PipPip
  • 19 posts

Posted 15 February 2018 - 08:01 PM

I have found that this example works fine with TUniURLFrame, when I add HTML text to its HTML property.

 

But unfortunatelly I am declaring some JS functions in HTML, which works with TUniHTMLFrame and does not work with TUniURLFrame.

 

So, displaying and zooming is working fine in TUniURLFrame, and declaring functions is working with TUniHTMLFrame. No one is working good enough for me. Any suggestions?

 

 


  • 0





Also tagged with one or more of these keywords: HTMLFrame, chart

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users