Home/Support/Support Forum/external javascript files
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

external javascript files

0 votes
Hi all,

I'm using external javascript file references in my html files. The Pbuilder compiler parses my js files and reports errors. However, IMHO the js files can be seen as binary files, like images and the parsed js files give overhead in the c code.

Q:
How can I configure the pbuilder compiler to 'see' my js files as binary?

TIA,

Victor
asked Nov 10, 2009 in NET+OS by vjoomens New to the Community (2 points)
recategorized Dec 10, 2013 by tuxembb

Please log in or register to answer this question.

3 Answers

0 votes
In file pbsetup.txt (I believe all platforms use this file name) ensure that the line containing UseJavaScript is NOT commented. If this line is active (NOT commented) then the pbuilder utility will NOT try to process the javascript, but instead will just pass it through. That is the only reason (I can think of) that the pbuilder utility would object to javascript code.
answered Nov 10, 2009 by sparkys_dad Community Contributor (99 points)
0 votes
Hi Sparkys,

UseJavaScript is enabled in my pbsetup. I also tried disabling this setting, but neither worked for me.

In both cases, when looking at the c code, the js files were parsed as text files for compression.

Can I configure pbuilder to process js files as binaryf files?

Cheers.
answered Nov 11, 2009 by vjoomens New to the Community (2 points)
0 votes
I know of no way to have the PBuilder utility process javascript files into binary files. PBuilder's only function, for javascript files is to add them to the *.c file to be sent up to the browser, when requested.
answered Nov 11, 2009 by sparkys_dad Community Contributor (99 points)
...