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

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.