D
dondi
WIN98SE
FP2000
I successfully got the above referenced Javascript working on my web.
If you go to http://belay.extendthereach.com/api/ you can see the script
in action. The complete documentation is available by clicking on the
link on the top of the page.
This snippet from the page source creates and populates the State,
County and Zip Code columns. As you can see these are hard coded.
function addReport() {
var geos = [];
geos.push(new AState('CO'));
geos.push(new ACounty('08013'));
geos.push(new AZipcode('80303'));
var report = new AReport(geos,
AReport.FD_80_TO_00_COMPARISON_REPORT);
demo.addReport(report);
}
Is there a way that I can create a drop down list for each column and
then click on a button to fetch the data.
Currently the Javascript executes as soon as soon the page is opened.
I would like to modify this behavior, but I am not sure which line in
the script is responsible. I think it might be
function initPage() {
demo = new AllocateEngine(document.getElementById("demoControl"));
addReport();
addChart();
}
but I am not sure. It could be in the <body> tag where it appears the
function is called by an "onload" command.
Any help greatly appreciated.
TIA
-Dom
FP2000
I successfully got the above referenced Javascript working on my web.
If you go to http://belay.extendthereach.com/api/ you can see the script
in action. The complete documentation is available by clicking on the
link on the top of the page.
This snippet from the page source creates and populates the State,
County and Zip Code columns. As you can see these are hard coded.
function addReport() {
var geos = [];
geos.push(new AState('CO'));
geos.push(new ACounty('08013'));
geos.push(new AZipcode('80303'));
var report = new AReport(geos,
AReport.FD_80_TO_00_COMPARISON_REPORT);
demo.addReport(report);
}
Is there a way that I can create a drop down list for each column and
then click on a button to fetch the data.
Currently the Javascript executes as soon as soon the page is opened.
I would like to modify this behavior, but I am not sure which line in
the script is responsible. I think it might be
function initPage() {
demo = new AllocateEngine(document.getElementById("demoControl"));
addReport();
addChart();
}
but I am not sure. It could be in the <body> tag where it appears the
function is called by an "onload" command.
Any help greatly appreciated.
TIA
-Dom