cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roberto Marra" <rma...@montefiore.ch>
Subject Javascript in the form
Date Thu, 21 Apr 2005 09:46:14 GMT
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"/>


Can I?

Thanx in advance
Cheers
Roberto




Mime
View raw message