Hi there,

I've been trying to use an external Javascript in an on-value-changed in a form 
field def.

I have something like:

<fd:on-value-changed>
  <fd:javascript>
     event.source.value = formatDate(event.source.value);
  </fd:javascript>
</fd:on-value-changed>

and I include the function in one of the stylesheets. I get a 
org.mozilla.javascript.EcmaError: "formatDate" is not defined; which is quite 
right as it hasn't been defined at that stage. I looked through the samples but 
I couldn't see anywhere were an external Javascript was included for this 
purpose. Can this be done or should all scripting be performed inline?

Thanks,

Gary

*****************************************************************
The information contained in this message may be confidential or 
legally privileged and is intended for the addressee only, If you 
have received this message in error or there are any problems, 
please notify the originator immediately. The unauthorised use, 
disclosure, copying or alteration of this message is 
strictly forbidden.
*****************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to