okayyyy, as this works now finally
A- i have around 8 js methods, should i create one js file for each one and then add all this to onAppInit? or just one having all of them?
assuming i will add new forlder for these js files in the same level of the _lib folder… projectFolder/mylib/jsfile.js…
echo “<script type=‘text/javascript’ src=‘mylib/method1.js’></script>”;
echo “<script type=‘text/javascript’ src=‘mylib/method2.js’></script>”;
echo “<script type=‘text/javascript’ src=‘mylib/method3.js’></script>”;
echo “<script type=‘text/javascript’ src=‘mylib/method4.js’></script>”;
echo “<script type=‘text/javascript’ src=‘mylib/method5.js’></script>”;
echo “<script type=‘text/javascript’ src=‘mylib/method6.js’></script>”;
echo “<script type=‘text/javascript’ src=‘mylib/method7.js’></script>”;
echo “<script type=‘text/javascript’ src=‘mylib/method8.js’></script>”;
B then what to put in the js file? only this
sc_ajax_javascript('js_fieldfield2color',arr ay({ row_cnt}));
or all the function with the condition:
If ({df} == '0')
sc_ajax_javascript('js_fieldfield2color',arr ay({ row_cnt}));
as i am happy because that other stupid little issue was solved… this isn’t so important… just because all the applications will have this js methods and they are 8 so though to put them in a library as you guys teach me to do with php libraries… if will waste your time to explain or is complicated and not advised, please ignore
cheeers 