Joerg
No, it IS the same version; that is why I was surprised.
I will try the fix you suggest.
Thanks
Derek
>>> Joerg Heinicke <[EMAIL PROTECTED]> 2007/09/07 02:29 PM >>>
On 07.09.2007 8:17 Uhr, Derek Hohls wrote:
> Running Cocoon 2.1.8 - I have an application that works fine
> on my local PC and on a test server. When I deploy to a
> production server, I get a surprising error when I try to
> access a javascript flow routine.
>
> The log file has this entry:
>
> FOM_JavaScriptInterpreter: Function 'main' must have no declared arguments!
> Use cocoon.parameters to reach parameters passed from the sitemap into the
> function.
...
> function main(funName) {
> ...
> }
It should be easy to track down the differences between two machines.
I'd guess it's not the same Cocoon version.
And changing your flowscript code as recommended should work:
function main() {
var funName = cocoon.parameters["funName"];
...
}
The reason for this change was that the order of the parameters (when
having more than once) is just too likely to break.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
This message is subject to the CSIR's copyright terms and conditions, e-mail
legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at
http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their
support.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]