'nextPage()' Example : nextPage « Javascript Methods « JavaScript Reference

Home
JavaScript Reference
1.Event Handlers Reference
2.Javascript Collections
3.Javascript Methods
4.Javascript Objects
5.Javascript Properties
JavaScript Reference » Javascript Methods » nextPage 
'nextPage()' Example

    
<html>
<head>
<script language="javascript">
function goPrevious(){
   document.all.myTable.dataPageSize = 2;
   myTable.previousPage()
}
function goNext(){
   document.all.myTable.dataPageSize = 2;
   myTable.nextPage()
}
</script>
<body>
<button onclick="goPrevious();">Previous Page</button>
<button onclick="goNext();">Next Page</button>
<button onclick="alert(document.all.myData.namedRecordset(''));">Named recordset</ 
button>
<object classid="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83" id="myData">
    <param name="DataURL" value="myfile.csv">
    <param name="UseHeader" value="True">
    <param name="TextQualifier" value="'">
</object>
<table id="myTable" datasrc="#myData">
<thead>
<tr style="font-weight:bold">
<td>First</td>
<td>Last</td>
</tr>
</thead>
<tbody>
<tr id="tableList">
   <td><span datafld="firstname"></span></td>
   <td><span datafld="lastname"></span></td>
   <td><span datafld="age"></span></td>
</tr>
</tbody>
</table>
</body>
</html>

<!--   myfile.csv:  -->
<!--
firstname:STRING,lastname:STRING
Koe,Tang
Tom,Howard
-->    
      
      
Related examples in the same category
1.'nextPage()' Syntax, Parameters and Note
2.'nextPage()' is applied to
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.