| re: Virtual function ?
I found a solution. When loading the interface I am reading the external .js
file and have used RegExps to extract the values from each of the functions
in the external file. For each group of these values I place an entry in a
new Array() ...
var groupVals = new Array();
groupVals [0] = "some value1","some value2","some value3","some
value4";
groupVals [1] = "other value1","other value2","other value3","other
value4";
groupVals [2] = "other value1","other value2","other value3","other
value4";
etc...
New entires that are now added are written to the external file and at the
same time, appending to the groupVals array. I don't have to worry about
accessing the actual external file for the values when new ones are added to
it. Now I have all of the original data plus any new data added, from which
I can use at runtime. The next time the interface launches it will have the
new data written to it and it starts the process all over again.
var groupNeeded = groupVals[0][0];
var groupNeeded = groupVals[0][1];
var groupNeeded = groupVals[0][2];
etc...
Thought I would share my solution.
David |