ajax标签大全,ajax标签(Ajax Tags).doc

ajax标签(Ajax Tags)

ajax标签(Ajax Tags)

Struts2 support for Ajax.

To use the Struts2 Ajax Tags, you need to do the following work:

1: the Dojo plugin, struts2-dojo-plugin-2.3.7.jar file is copied to the WEB-INF/lib folder.

2: the increase of taglib references on the page,

3: contains head tags at the top of each page

1) head tag

Function:

The head tag position is special, its function is to download

The Dojo file and the corresponding Javascript code,

So all the other using the Dojo tag page should contain the label.

Attribute:

Compressed: whether to use dojo.js compression version.

Debug: use the debug mode.

We suggest that during development, compressed is set to false,

Debug is set to true, so to facilitate the debugger;

But when delivered to the customer, compressed should be set to true,

Debug is set to false, it can speed up the operation of the program.

2) div tag:

Function:

The div tag display for Div element in HTML, but the div tag

Can be asynchronous, dynamic loading needs to display content,

But the div tag also provides an internal timer,

You can cycle in the set time to reload needs to display content.

Attribute:

Href: JSP or Action asynchronous request,

The action is responsible for the generation of the div element content.

UpdateFreq div: Specifies the update interval, the unit is MS, if you do not specify,

The div is updated only when a page loads the contents

Delay: Specifies the contents of the div update time delay, the unit is ms,

ShowLoadingText: whether to display the prompt loading information.

LoadingText: loading message

Indicator said: the picture shows that execution of asynchronous request

One example: page load, asynchronous access Action

ShowLoadingText= "true"

LoadingText= data is being loaded. ".."

ErrorText= failed to load data. ".."

Indicator= "indicator"

>

loading_gray.gif

Returns the Ajax result

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值