NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: kingja on March 09, 2015, 07:43:11 PM

Title: Using RChart in NT 8.40 app
Post by: kingja on March 09, 2015, 07:43:11 PM
Bruce,

     I have been experimenting with a JavaScript charting library called RChart.  I created a WebPage procedure and added the necessary JS code to the XHTML tab.  A sample chart was created successfully when I called this procedure from a menu item.  Next, I created a memory form with three tabs.  On tab 1 I created a field of type procedure, and had it call the webpage procedure from above.  This causes the chart to be placed in the header of all subsequent pages, see the attached image of my login page.  I can't see where I went wrong.  Any suggestions?

Thanks,
Jeff

[attachment deleted by admin]
Title: Re: Using RChart in NT 8.40 app
Post by: Bruce on March 10, 2015, 12:20:38 AM
Hi Jeff,

>>  On tab 1 I created a field of type procedure, and had it call the webpage procedure from above.

no, this is not allowed. A NetWebPage is a "Page" not a "Control" and so cannot be embedding "in" other pages.

Probably you need to move your code to a NetWebSource, which can then be embedded on both your test NetWebPage, and also included in other Pages (ie inside a NetWebForm).

cheers
Bruce
Title: Re: Using RChart in NT 8.40 app
Post by: kingja on March 11, 2015, 05:40:03 PM
Bruce,

     Thanks.  That got me going in the right direction.  Attached is an image of a tabbed form with a chart on an individual tab.

Jeff

[attachment deleted by admin]