如何从Spring MVC项目中删除Dojo Dijit

时间:2013-05-28 17:06:37

标签: spring spring-mvc dojo

如何从javascript调用中删除Dojo Dijit

如何更改以下代码以仅使用html选择我们不想使用dijit或dojo ..有人可以帮助我们

<script type="text/javascript">
    Spring.addDecoration(new Spring.ElementDecoration({
        elementId : "borough",
        widgetType : "dijit.form.Select",
        widgetAttrs : {
            promptMessage : "Enter Borough",
            required : true, 
            onChange : function() {
                Spring.remoting.submitForm(
                   'submit',
                   'member', 
                   {_eventId: 'loadSchools', fragments:'contents'}
               ); 
        return false;
    } }}));
</script>

1 个答案:

答案 0 :(得分:0)

删除Dojo内容并将其替换为普通的纯Java脚本:onchange='this.form.submit()'

<form ...>
  <select name='someField' onchange='this.form.submit()'>
      <option>A</option>
      <option>B</option>
      <option>C</option>
  </select>
</form>