Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Highlighted
Developer
Posts: 164
Registered: ‎11-27-2012
My Device: Z10 LE,Dev Alpha C
My Carrier: China Mobile

HELP needed, how to do pagination in webworks?

I want to build a text reader app using webworks,

but I don't know how to paginate the large text file into pages,

for example,

If I want to load a 1MByte Txt file, I would like to read the first 1K or 2K Bytes into buffer,

do the pagination,

and display one page with customed text size and font.

 

is there any method or advice for me to do the pagination?

 

thanks.

BlackBerry Cascades / WebWorks developer, Vendor name: anpho
Developer
Posts: 366
Registered: ‎07-15-2013
My Device: blackberry Z10
My Carrier: Personal

Re: HELP needed, how to do pagination in webworks?

maybe you should to look the way to do this in javascript , look in google samples of this

 

http://www.ajaxshake.com/es/JS/12611/paginacion.html

 

http://flaviusmatis.github.io/simplePagination.js/

 

 

I hope that you serve

If you find this information useful please click like --->
@mezeitune on twitter