TroyMcClure72
MIS
Hi all,
Can someone give me a clue what this function is doing?
I'm not, as you may guess, familiar with Javascript, but doesn't stop the boss asking me to look into it!
The function I believe, should be counting the number of jpg's in a folder 'charts' that start with a specific string ...
function getNberCharts(var4) {
var RE = new RegExp('(\\?|&)' + var4 + '=([^\\s]+)');
if
(location.search) return unescape(RE.exec(location.search)[2]);
}
var TotalNberCharts= getNberCharts('NberCharts');
Can someone give me a clue what this function is doing?
I'm not, as you may guess, familiar with Javascript, but doesn't stop the boss asking me to look into it!
The function I believe, should be counting the number of jpg's in a folder 'charts' that start with a specific string ...
function getNberCharts(var4) {
var RE = new RegExp('(\\?|&)' + var4 + '=([^\\s]+)');
if
(location.search) return unescape(RE.exec(location.search)[2]);
}
var TotalNberCharts= getNberCharts('NberCharts');