Jump to content

Get or Find all user defined variables from a file


iPixel

Recommended Posts

ok ! i've got this dictionary.js file and it looks something like this

var BTU = '<font class="tooltipWord">BTU</font> : British Thermal Units - The quantity of heat required to raise the temperature of one pound of water from 60° to 61°F at a constant pressure of one atmosphere.';

var CFM = '<font class="tooltipWord">CFM</font> : Cubic Feet per Minute.';

 

etc.. etc... just much much much more variables.

i use these elsewhere but i also want to build a static page that will display all of these values,

this static page calls for the js file

 

<scrip type="text/javascript" src="dictionary.js"></script>

 

my questions to you is .. how can i do that

Basically get all the var's that exist and print them all out in a nice clean fashion.

These are all defined by hand and at one point the file will contain hundreds of vars

 

Thanks

Piotr

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.