[Seaside] Re: Re: Re: Re: SUPeriodical - changing the frequency onthe fly

Lukas Renggli renggli at gmail.com
Fri Aug 25 16:41:57 UTC 2006

> 1. Where does  the "arguments[0]"  - come from?  who fills in the array
> "arguments"?

"arguments" is an implicit variable available within any function
body. It is a bit like thisContext in Smalltalk. You can access the
arguments using the array syntax, so the above code will return the
first argument passed to the function. The generated JavaScript code
for functions never give propre names to arguments and always uses
indexes when accessing the values.

See also <http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Functions:arguments>

> 2. I see in your example code that you have a line of debugging code:
> 'console.log("change", arguments)'.  Does this result in the information
> being written tothe Javascript console?  This would be so useful but in my
> environment it complains about "console".  How do I get this to work?

This only works in the WebKit version of Safari (older version even
crash) or in FireFox with the FireBug (a mandatory tool to use when
using script.aculo.us) extension loaded. As far as I know
"console.log" is an upcoming standard to JavaScript, so better suport
for that construct is to be expected.


Lukas Renggli

More information about the Seaside mailing list