View Full Version : Need Help in Virtual Pagination script (Demo5)

12-30-2009, 08:55 AM
Script: Virtual Pagination script v2.1

I am trying to put my Custom Text called "mynamelist" which is a text array to replace the default sequential numbers, but i got a blank select option list.

The value of mynamelist is mynamelist(0)="Class A", mynamelist(1)="Class B",...etc. which is obtained in a sql database at another asp page and stored into a Session like Session("namelist")=mynamelist

How can i modifly my code shown as below to get a correct option list?

<script type="text/javascript">
var myclass=new virtualpaginate({
piececlass: "virtualpage",
piececontainer: 'div',
pieces_per_page: 1,
defaultpage: <%Response.Write Session("classnumber")%>,
wraparound: false,
persist: true


12-30-2009, 09:31 PM
It should work, provided <%=Session("namelist")%> generates a comma delimited list of text such as "horses", "cows", "rabbits", "donkeys". If you still need help, please post a link to the page on your site that contains the problematic script so we can check it out.