网站大量收购独家精品文档,联系QQ:2885784924

《Lining Dojo GuidLine》.doc

  1. 1、本文档共9页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
《Lining Dojo GuidLine》.doc

李宁B2C 当前版本:[v0.1] 修改日期:2010-03-09 文档状态:[草稿] 作者:夏中矩 文档信息 文档名称 李宁B2C网上商城 作 者 夏中矩 类 别 开发文档 编 号 文件名称 Lining Dojo GuidLine.doc 文件说明 修订历史 (REVISION HISTORY) 版本 日期 章节 类型 作者 摘 要 0.1 2010-03-09 创建 夏中矩 文档建立 目 录 1 简介 2 1.1 内容摘要 2 1.2 适用对象 2 2 DOJO AJAX FRAMEWORK 3 2.1 Making an AJAX call to a WebSphere Commerce controller command or service 3 2.2 Making AJAX calls to WebSphere Commerce views to get refresh contents 4 2.3 通过dojo的api直接访问view 6 简介 内容摘要 dojo ajax framework的三种方式 适用对象 本文档仅适用与李宁B2C项目组开发成员。 DOJO AJAX FRAMEWORK Making an AJAX call to a WebSphere Commerce controller command or service Jsp script type=text/javascript src=c:out value=${dojoFile}/ djConfig=${dojoConfigParams}/script script type=text/javascript !-- dojo.require(mon); wc.service.declare({ id: AjaxMerchandiseCommentAddCmd, actionId: AjaxMerchandiseCommentAddCmd, url: AjaxMerchandiseCommentAddCmd,//需要提交的command formId: AjaxMerchandiseCommentAddCmdForm,//为form的name successHandler: function(serviceResponse) { alert(serviceResponse.message);//serviceResponse就是command里面的responseProperties这个对象 if(serviceResponse.flag=success){ window.location.reload(); } }, failureHandler: function(serviceResponse) { if (serviceResponse.errorMessage) { alert(serviceResponse.errorMessage); } } }); function submitAction(){ wc.service.invoke(AjaxMerchandiseCommentAddCmd); } //-- /script 在jsp里声明wc.service.declare这个方法,在事件触发的时候调用wc.service.invoke(AjaxMerchandiseCommentAddCmd); Struts-config action parameter=mands.AjaxMerchandiseCommentAddCmd path=/AjaxMerchandiseCommentAddCmd type=merce.struts.AjaxAction set-property property=authenticate value=0:0 / set-property property=https value=0:1 / /action 使用AjaxAction Command Command里面注意的是,最后一定要加responseProperties.put(viewTaskName, RedirectView); Making AJAX calls to WebSphere Commerce views to get refresh contents Jsp(声明) /Stores/WebContent/MeiyijuStorefrontAssetStore/UserArea/Ac

文档评论(0)

mwap + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档