[Chameleon-dev] [Bug 606] makeButton: more javascript parameters
bugzilla-daemon at www.maptools.org
bugzilla-daemon at www.maptools.org
Wed Aug 4 08:24:07 EDT 2004
http://www.maptools.org/bugzilla/show_bug.cgi?id=606
------- Additional Comments From pspencer at dmsolutions.ca 2004-08-04 08:24 -------
that's correct. To support multiple simple parameters, you need to put them
into an array. But I think it should be possible to support multiple
parameters. I've become a fan of the 'arguments' array in javascript functions
recently:
function varArgs( /*variable number of arguments*/ )
{
var i;
var szArgs = "";
var szSep = "";
for (i=0; i<arguments.length; i++)
{
szArgs = szArgs + szSep + arguments[i];
szSep = ",";
}
alert( "arguments were " + szArgs );
}
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Chameleon-dev
mailing list