Results 1 to 2 of 2

Thread: Need Help in Virtual Pagination script (Demo5)

  1. #1
    Join Date
    Dec 2009
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Need Help in Virtual Pagination script (Demo5)

    Script: Virtual Pagination script v2.1
    http://www.dynamicdrive.com/dynamici...pagination.htm

    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?

    Code:
    <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
    })
    
    shopbooking.buildpagination(['class_select'],[<%=Session("namelist")%>])
    </script>
    Last edited by Arcphoenix; 12-30-2009 at 09:47 AM. Reason: please use [CODE] [/CODE] tags

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    Arcphoenix (12-31-2009)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •