Roberto Marra Escribio :-)
> Hi all,
> I was checking some example of form with some javascript code inside. My
> question is, can I add javascript code as external file?
>
> <fd:selection-list src="cocoon:/cars" dynamic="true"/>
> <fd:on-value-changed>
> <javascript>
>   java.lang.System.err.println("maker changed from " + event.oldValue + "
> to " + event.newValue);
>   var value = event.source.value;
>   var typewidget = event.source.lookupWidget("../type");
>   if (value != null) {....
> </javascript>
> Instead of do that do something like
>
> <fd:selection-list src="cocoon:/cars" dynamic="true"/>
> <fd:on-value-changed>
> <javascript path="externlafile"/>

  Hi Roberto.

  You can add a file with javascript code using the sitemap,
  for example:

   <map:flow language="javascript">
        <map:script src="path to the file"/>
    ...

   then in the Cforms you can call the function.

  Cheers.
  Carlos Ch�vez.
>
>
> Can I?
>
> Thanx in advance
> Cheers
> Roberto
>
>
>
>


-- 
Carlos Ch�vez

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

Reply via email to