yes, "delete" is a reserved keyword in Javascript: it cannot be used as function name,
variable name, loop label.
Regards,
---------------------------------------------
Luca Morandini
GIS Consultant
[EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------
> -----Original Message-----
> From: Fabio Sabatini [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 11, 2003 7:50 PM
> To: [EMAIL PROTECTED]
> Subject: [flow] How can I "delete" in javascript?
>
>
> I'm using C2.1 with *flow*.
> I have to call the method *delete* of a class, in a javascript function
> of my controller layer.
> Maybe delete is a keyword in javascript and when the function is called
> I get this error:
> SyntaxError: missing name after . operator
>
> The code is:
> myClass.delete(objectToDelete);
>
> The same error using the function eval:
> eval("myClass.delete(objectToDelete)");
>
> Thanks.
> Fabio
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]