论坛首页 Web前端技术论坛

cocoon对ajax的支持真是太棒了 !

浏览 4122 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2005-11-26  
只需要在form的定义中加上 ajax="true"

<ftform-template action="continue" method="POST" ajax="true">
  <ftwidget id="email"/>
  .../...
</ftform-template>

然后在管道中加上  <maptransform type="browser-update"/> 就完成了
<mapmatch pattern="viewform-*">
  <mapgenerate type="jx" src="pages/{1}.xml"/>
  <maptransform type="browser-update"/>
  <mapselect type="ajax-request">
    <mapwhen test="true">
      <mapserialize type="xml"/>
    </mapwhen>
    <mapotherwise>
      <mapserialize type="html"/>
    </mapotherwise>
  </mapselect>
</mapmatch>

简直有点不可思议 ! 实在是太简单了

想尝试的可以去下载cocoon2.1.8
   发表时间:2005-11-27  
cocoon 本身已经 很难学了。。。。
0 请登录后投票
   发表时间:2005-12-02  
wfeng007 写道
cocoon 本身已经 很难学了。。。。



现在的cocoon 主要就是 flow script(代continue的 javascript)  jx (和jstl差不多) cform(form框架) 其他的都很简单 包括用户验证都简单的很

xsp快变成底层了 开发中基本上用不到.
0 请登录后投票
   发表时间:2005-12-14  
管道是什么?个人觉得在脚本语言上再外加任何东西都是多余的。
0 请登录后投票
论坛首页 Web前端技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics