isi has asked for the wisdom of the Perl Monks concerning the following question:
I have a cgi that generates color maps. I can generate different years by varying 1 paramter. So I thought I could provide a link to a JavaScript function that would move through the years recurively as follows.
The parameters are correct and the 'for' years are right. But it generates the first year and stops. I have added a sleep function and it generates all five years, but they are not shown. Any help would be appreciated. isifunction simulate(parms) { var parts = parms.split('\|'); yrs = new Array; yrs = parts[2].split('~'); for( var i=0; i < yrs.length; i++ ) { document.location = 'http://' + parts[0] + '/scx/darea.cgi?str=' + + parts[1] + '_' + yrs[i]; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to simulate?
by ikegami (Patriarch) on Apr 19, 2011 at 19:43 UTC | |
Re: How to simulate?
by InfiniteSilence (Curate) on Apr 19, 2011 at 18:58 UTC | |
Re: How to simulate?
by Anonymous Monk on Apr 19, 2011 at 18:36 UTC | |
by isi (Initiate) on Apr 19, 2011 at 18:46 UTC | |
by Anonymous Monk on Apr 19, 2011 at 19:58 UTC | |
Re: How to simulate?
by CountZero (Bishop) on Apr 19, 2011 at 18:54 UTC | |
Re: How to simulate?
by LanX (Saint) on Apr 19, 2011 at 19:35 UTC | |
Re: How to simulate?
by scorpio17 (Canon) on Apr 20, 2011 at 14:11 UTC |
Back to
Seekers of Perl Wisdom