Mashiane Expert Licensed User Longtime User Mar 28, 2019 #1 Hi there I'm learning more about the BANano object and its usage. I read somewhere that executing Eval is kinda slow but then again, I haven't had any thing to take home about on it. it just seems to be more easier to write.. Code: Copy BANano.Eval("Chartkick.CustomChart = function (element, dataSource, options) {};") of rather Code: Copy coptions.Put("download", Download) 'define the format the data will be plotted on the chart #if javascript Chartkick.CustomChart = function (element, dataSource, options) {}; #end if Dim bo As BANanoObject however for one to understand BANano and thus the BANanoObject for example, one needs to be clear in terms of 1. what the javascript code does and will look like and secondly 2. how to write BANano code that will produce the correct javascript code for ones app to work. So with the code above, what is recommended rather, execute eval / #if javascript / write banano code to produce similar javascript code? The reason Im asking is im learning and would like to know best scenarios just to write "inline" scripts? Thanks!
Hi there I'm learning more about the BANano object and its usage. I read somewhere that executing Eval is kinda slow but then again, I haven't had any thing to take home about on it. it just seems to be more easier to write.. Code: Copy BANano.Eval("Chartkick.CustomChart = function (element, dataSource, options) {};") of rather Code: Copy coptions.Put("download", Download) 'define the format the data will be plotted on the chart #if javascript Chartkick.CustomChart = function (element, dataSource, options) {}; #end if Dim bo As BANanoObject however for one to understand BANano and thus the BANanoObject for example, one needs to be clear in terms of 1. what the javascript code does and will look like and secondly 2. how to write BANano code that will produce the correct javascript code for ones app to work. So with the code above, what is recommended rather, execute eval / #if javascript / write banano code to produce similar javascript code? The reason Im asking is im learning and would like to know best scenarios just to write "inline" scripts? Thanks!
Mashiane Expert Licensed User Longtime User May 24, 2019 #2 The project that this has been related to has been completed, will mark this as solved. ChartJS with 1 line of code Upvote 0
The project that this has been related to has been completed, will mark this as solved. ChartJS with 1 line of code