<body onload="ajax('_search',
['number','Manufacturer','Type','Size'],'target')">

<table width="800" cellspacing="0" class="table-pager" summary="Memory
template">
<tr>
<td class="head" width="20%"'number'</td>
<td class="head" width="20%">Manufacturer</td>
<td class="head" width="20%">Type</td>
<td class="head" width="20%">Size</td>
<td class="head" width="20%">Amount</td>
</tr>

<tr>
<form>
<td class="head" colspan="1"><div class="Input"><input id="number"
onkeyup="ajax('_search',
['number','Manufacturer','Type','Size'],'target')"></div></td>
<td class="head" colspan="1">{{=SELECT(*Manufacturer,**dict
(_name='Manufacturer', _id="Manufacturer", _onchange="ajax('_search',
['number','Manufacturer','Type','Size'],'target')"))}}</td>
<td class="head" colspan="1">{{=SELECT(*Type, **dict(_name='Type',
_id="Type", _onchange="ajax('_search',
['number','Manufacturer','Type','Size'],'target')"))}}</td>
<td class="head" colspan="1">{{=SELECT(*Size, **dict(_name='Size',
_id="Size", _onchange="ajax('_search',
['number','Manufacturer','Type','Size'],'target')"))}}</td>
<td class="head" colspan="1">{{=A(">>clear", _class="blue", _href=URL
(r=request,f='index'))}}</td>
</form>
</tr>
</table>

<div id="target"></div>

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

my ajax page like this:

<script src="{{=URL(r=request,c='static',f='jquery-1.3.2.min.js')}}"
type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src={{=URL
(r=request,c='static',f='jquery.addTablePager.v.1.0.js?i')}}></script>

<script type="text/javascript">
    $(document).ready(function(){
    $(".table-pager").addTablePager({results : 5, position : "top"});
    });
</script>

<table width="800" cellspacing="0" class="table-pager" summary="Memory
template">

<tbody>
{{for row in rows:}}
<tr>
<td class="memory" width="20%">{{=A(row.number,_href=URL
(r=request,f='edit',args=[row.id]))}}</td>
<td class="memory" width="20%">{{=row.Manufacturer}}</td>
<td class="memory" width="20%">{{=row.Type}}</td>
<td class="memory" width="20%">{{=row.Size}}</td>
<td class="memory" width="20%">{{=row.Amount}}</td>
</tr>
{{pass}}
</tbody>
</table>


as i said the pagination isnt passed to target div in index page.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to