调用table.nextPage()时会触发什么事件?

robertlh 2004-05-04 11:29:06
调用table.nextPage()时会触发什么事件?
...全文
173 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
hbzyduwu 2004-05-06
  • 打赏
  • 举报
回复
没仔细看,应该是和绑定表格时,有关的方法.
robertlh 2004-05-06
  • 打赏
  • 举报
回复
在用table.nextPage()进行翻页时,页数改变有没有触发事件
dullwolf 2004-05-05
  • 打赏
  • 举报
回复
DATASRC Attribute | dataSrc Property

--------------------------------------------------------------------------------

Sets or retrieves the source of the data for data binding.

Syntax

HTML <ELEMENT DATASRC = sID... >
Scripting object.dataSrc [ = sID ]

Possible Values

sID String that specifies or receives the identifier of the data source.

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

Tabular and single-valued data consumers use the dataSrc property to specify a binding. The property takes a string that corresponds to the unique identifier of a data source object (DSO) on the page. The string must be prefixed by a number sign (#).

When the dataSrc property is applied to a tabular data consumer, the entire data set is repeated by the consuming elements.

When the dataSrc property is applied to a table, any contained single-valued consumer objects that specify a dataFld property are repeated for each record in the supplied data set. To complete the binding, the binding agent interrogates the enclosing table for its data source. A tabular data consumer contained within another tabular data consumer (table) must specify an explicit dataSrc.

Example

In this example, a text box is bound to the customer_name field of a data source object with an ID of "customer". Because the text box is located within a data-bound table, the text box is repeated to display each of the records provided by the data source.

<TABLE DATASRC="#customer">
<TR><TD><INPUT TYPE=TEXTBOX DATAFLD="customer_name"><TD><TR>
</TABLE>
Standards Information

There is no public standard that applies to this property.

Applies To

[ Object Name ]
Platform Version
Win16:
Win32:
Unix:
Mac:
Windows CE:
Version data is listed when the mouse hovers over a link, or the link has focus.
A, APPLET, BUTTON, DIV, FRAME, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=text, LABEL, MARQUEE, SELECT, SPAN, TABLE, TEXTAREA
Move the mouse pointer over an element in the Applies To list to display availability information for the listed platforms. Internet Explorer does not expose this member on platforms that are not listed.

See Also

Introduction to Data Binding

--------------------------------------------------------------------------------

© 2003 Microsoft Corporation. All rights reserved.
dullwolf 2004-05-05
  • 打赏
  • 举报
回复
DATAPAGESIZE Attribute | dataPageSize Property

--------------------------------------------------------------------------------

Sets or retrieves the number of records displayed in a table bound to a data source.

Syntax

HTML <TABLE DATAPAGESIZE = iSize... >
Scripting TABLE.dataPageSize [ = iSize ]

Possible Values

iSize Integer that specifies or receives the number of records in the table.

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

The firstPage and lastPage methods are used to navigate directly to the first and last pages of a databound table, respectively. The nextPage and previousPage methods are used to navigate sequentially through the pages of a databound table.

Example

In this example, a text box is bound to the customer_name field supplied by a data source object with an ID of customer. Because the text box is located within a data-bound table, the text box is repeated to display each of the records in the data source. The DATAPAGESIZE attribute on the table limits the display to 10 records.

<TABLE DATASRC="#customer" DATAPAGESIZE=10>
<TR><TD><INPUT TYPE=TEXTBOX DATAFLD="customer_name"></TD></TR>
</TABLE>
Standards Information

There is no public standard that applies to this property.

Applies To

[ Object Name ]
Platform Version
Win16:
Win32:
Unix:
Mac:
Windows CE:
Version data is listed when the mouse hovers over a link, or the link has focus.
TABLE
Move the mouse pointer over an element in the Applies To list to display availability information for the listed platforms. Internet Explorer does not expose this member on platforms that are not listed.

See Also

Introduction to Data Binding, firstPage, lastPage, nextPage, previousPage

--------------------------------------------------------------------------------

© 2003 Microsoft Corporation. All rights reserved.
dullwolf 2004-05-05
  • 打赏
  • 举报
回复
nextPage Method

--------------------------------------------------------------------------------

Displays the next page of records in the data set to which the table is bound.

Syntax

TABLE.nextPage()
Return Value

No return value.

Remarks

The number of records displayed in the table is determined by the dataPageSize property of the table. You must set the DATAPAGESIZE attribute when designing the page, or set the corresponding dataPageSize property at run time for this method to have any effect.

Note You do not need to check for boundary conditions.
Standards Information

There is no public standard that applies to this method.

Applies To

[ Object Name ]
Platform Version
Win16:
Win32:
Windows CE:
Unix:
Mac:
Version data is listed when the mouse hovers over a link, or the link has focus.
TABLE
Move the mouse pointer over an element in the Applies To list to display availability information for the listed platforms. Internet Explorer does not expose this member on platforms that are not listed.

See Also

Introduction to Data Binding, firstPage, lastPage, previousPage

--------------------------------------------------------------------------------

© 2003 Microsoft Corporation. All rights reserved.
robertlh 2004-05-05
  • 打赏
  • 举报
回复
有人知道吗

87,997

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧