I try import a .js file and everything compile with no problem. but it seems that I can’t execute the function in the .js file.
is it the right way to import the file and setting the MIME as shown below?
part of the source code:
#ximport “sensor1.zhtml” sensor_zhtml
#ximport “graphs.js” js_graphs_lib
SSPEC_MIME_FUNC(“.html”, “text/html”, zhtml_handler),
Hi Lee, try this:
- In the following line:
>>>>#ximport “graphs.js” js_graphs_lib
pu the full path name of of the .js file i.e.
#ximport “/graphs.js” js_graphs_lib
- Replace this line:
I hope that works for you.
Thanks a lot for your advice & help.
It works! Your helps have saved me… i have been spending the past two days on this problem…