Javascript "function" syntax

Alexander Dietz alex@munich.sgi.com
Tue, 22 May 2001 13:48:18 +0200


Hi *,

what is the "official" syntax for coding Javascript functions? 

I am using IMP 2.2.4 over a SSL connection and discovered the following
problem (which does not occure every time): Clicking on "Compose" (or
"Contacs") does not open a compose window; Netscape is reporting a Javascript
error: "open_compose_win not defined". The interesting thing is, that "View
Frame Source" comes up with all relevant functions.

After changing all function definitions in imp/lib/js/* from
  function any_name (args)
to
  function any_name(args)
(i.e. deleting the space), all is running fine.

Is this a local problem?

thanks,
  aleX.