Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2009
    Thanked 0 Times in 0 Posts

    Blob pagination with string separations?

    I'm wishing to build an engine that will allow me to take a blob field and separate it into fields, and be able to page through it. The text in the field can be unformatted or formatted html, but I simply wish to create a paging scheme that will separate the large string into pages that the user can click left or right on, to page through like a book (no special graphics). Can anyone point me into the right direction as to how this might be done?

    Side note: it also cannot cut into words when making pages

    I would appreciate any feedback on this

  • #2
    Regular Coder
    Join Date
    Apr 2009
    somewhere over the rainbow
    Thanked 14 Times in 14 Posts
    where specific do you want to separate a blob???

    lets say you have a book and you want to separate it into pages.
    each page will contain 1000 chars.
    you save the current page on GET
    and with substr you cut the matching 1000 chars per page.

    just notice if it is a book, you probably don't want to cut the last\first word of the page..


    Posting Permissions

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