473,394 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Pagination with dynamically changing page length (dynamic page breaks?)

I generate a DHTML page (a medical report) with dynamically generated text
based on user input (answers to questions). The page length changes
dynamically. I desire that when the page is printed and reaches a specific
length, it terminates printing that page, prints a page number, and then
begins to print the next page using the same header and format as the
previous page. The page uses no tables or paragraph elements, only CSS.
IOW, I can't count rows or <pelements as every pagination script I've
found does. In fact, every pagination script I've encountered is used only
for non-dynamic page lengths.

So, how do I dynamically set page breaks?

Does anyone have any suggestions, methods, or direction for me?
--
Ed Jay (remove 'M' to respond by email)
Jul 29 '06 #1
4 3616
Ed Jay wrote:
I generate a DHTML page (a medical report) with dynamically generated text
based on user input (answers to questions). The page length changes
dynamically. I desire that when the page is printed and reaches a specific
length, it terminates printing that page, prints a page number, and then
begins to print the next page using the same header and format as the
previous page. The page uses no tables or paragraph elements, only CSS.
IOW, I can't count rows or <pelements as every pagination script I've
found does. In fact, every pagination script I've encountered is used only
for non-dynamic page lengths.

So, how do I dynamically set page breaks?

Does anyone have any suggestions, methods, or direction for me?
XSLT + XSL:FO?

--
Jack.
http://www.jackpot.uk.net/
Jul 30 '06 #2
Jack scribed:
>Ed Jay wrote:
>I generate a DHTML page (a medical report) with dynamically generated text
based on user input (answers to questions). The page length changes
dynamically. I desire that when the page is printed and reaches a specific
length, it terminates printing that page, prints a page number, and then
begins to print the next page using the same header and format as the
previous page. The page uses no tables or paragraph elements, only CSS.
IOW, I can't count rows or <pelements as every pagination script I've
found does. In fact, every pagination script I've encountered is used only
for non-dynamic page lengths.

So, how do I dynamically set page breaks?

Does anyone have any suggestions, methods, or direction for me?

XSLT + XSL:FO?
Ummm...huh?

I'm very green at this stuff, so please bear with me and elucidate.
Thanks.
--
Ed Jay (remove 'M' to respond by email)
Jul 30 '06 #3
Ed Jay wrote:
Jack scribed:
>Ed Jay wrote:
>>I generate a DHTML page (a medical report) with dynamically
generated text based on user input (answers to questions). The
page length changes dynamically. I desire that when the page is
printed and reaches a specific length, it terminates printing
that page, prints a page number, and then begins to print the
next page using the same header and format as the previous page.
The page uses no tables or paragraph elements, only CSS. IOW, I
can't count rows or <pelements as every pagination script I've
found does. In fact, every pagination script I've encountered is
used only for non-dynamic page lengths.

So, how do I dynamically set page breaks?

Does anyone have any suggestions, methods, or direction for me?
XSLT + XSL:FO?

Ummm...huh?

I'm very green at this stuff, so please bear with me and elucidate.
Thanks.
XSLT is XSL Transformations: a language for transforming XML documents
into something else - usually another XML document with a different
structure, but sometimes the output is something else entirely.

XSL:FO is a derivative of XSLT designed for the purpose of formatting
XML documents for display or print. It can handle pagination quite well.
The "FO" stands for "Formatting Objects". XSL:FO can be used for
producing HTML or PDF out-of-the-box, and can produce other output
formats if a developer is willing to expend the necessary effort.

These two technologies together are referred to by W3C as "XSL", or XML
Stlylesheet Language. Both XSLT stylesheets andd XSL:FO stylesheets are
XML documents.

In both cases, the input documents have to be XML (unless you are bold
enough to step out with XSL V2.0, which is not yet quite a ratified
standard, but which can deal quite well with input documents that are
not XML). If your input documents aren't XML, then perhaps you can
convert them to XML easily; if you can't, and if XMLV2 isn't consistent
with your requirements, then the direction I'm pointing you in probably
isn't going to work for you.

It's not clear to me what "stuff" it is that you consider you are "green
at". XSLT and XSL:FO both involve quite a steep learning-curve for most
people, so perhaps the suggestions/pointers I gave were unsuitable for
you, if you are quite green in general. Googling those terms will
provide you with more information, and then you can judge for yourself
whether those technologies are ones that you can work with.
--
Jack.
http://www.jackpot.uk.net/
Jul 30 '06 #4
Jack scribed:
>Ed Jay wrote:
>Jack scribed:
>>Ed Jay wrote:
I generate a DHTML page (a medical report) with dynamically
generated text based on user input (answers to questions). The
page length changes dynamically. I desire that when the page is
printed and reaches a specific length, it terminates printing
that page, prints a page number, and then begins to print the
next page using the same header and format as the previous page.
The page uses no tables or paragraph elements, only CSS. IOW, I
can't count rows or <pelements as every pagination script I've
found does. In fact, every pagination script I've encountered is
used only for non-dynamic page lengths.

So, how do I dynamically set page breaks?

Does anyone have any suggestions, methods, or direction for me?
XSLT + XSL:FO?

Ummm...huh?

I'm very green at this stuff, so please bear with me and elucidate.
Thanks.

XSLT is XSL Transformations: a language for transforming XML documents
into something else - usually another XML document with a different
structure, but sometimes the output is something else entirely.

XSL:FO is a derivative of XSLT designed for the purpose of formatting
XML documents for display or print. It can handle pagination quite well.
The "FO" stands for "Formatting Objects". XSL:FO can be used for
producing HTML or PDF out-of-the-box, and can produce other output
formats if a developer is willing to expend the necessary effort.

These two technologies together are referred to by W3C as "XSL", or XML
Stlylesheet Language. Both XSLT stylesheets andd XSL:FO stylesheets are
XML documents.

In both cases, the input documents have to be XML (unless you are bold
enough to step out with XSL V2.0, which is not yet quite a ratified
standard, but which can deal quite well with input documents that are
not XML). If your input documents aren't XML, then perhaps you can
convert them to XML easily; if you can't, and if XMLV2 isn't consistent
with your requirements, then the direction I'm pointing you in probably
isn't going to work for you.

It's not clear to me what "stuff" it is that you consider you are "green
at". XSLT and XSL:FO both involve quite a steep learning-curve for most
people, so perhaps the suggestions/pointers I gave were unsuitable for
you, if you are quite green in general. Googling those terms will
provide you with more information, and then you can judge for yourself
whether those technologies are ones that you can work with.
Thanks, Jack. I'm fairly green at CSS, in general.

Off to googling. Thanks, again.
--
Ed Jay (remove 'M' to respond by email)
Jul 30 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rhino | last post by:
I would like to make a CSS for an HTML resume that ensures that page breaks come at desired places within the printed version. I know about page-break-before, page-break-after, etc. but I'm still...
1
by: adamredwards | last post by:
I have a page with some form elements that are dynamically generated. They are inserted into the dom by first cloning a node, changing the values like name, and then inserted with insertBefore(). ...
1
by: Ed Jay | last post by:
I generate a DHTML page (a medical report) with dynamically generated text based on user input (answers to questions). The page length changes dynamically. I desire that when the page is printed...
1
by: assgar | last post by:
Hi I was using a schroll bar to display multiple rows of dynamically created from database records. The scrolling was not displaying the data properly so I have decided to use pagination. The...
5
by: sandipon | last post by:
I have used the following Pagination script to display database records in a series of pages, but only the first page shows up properly, and on clicking the links of subsequent pages or the NEXT ,...
1
by: =?Utf-8?B?QVZM?= | last post by:
Hi, I've a requirement wherein I need to create datagrid dynamically along with the pagiantion implementation in aspx page. I've created the grid dynamically but i've problem with the paging...
3
by: helraizer1 | last post by:
Hey folks, I have made an image-based shoutbox and now users can view older and newer message on the shoutbox depending on the $_GET - pagination - that works. However, since it's image based and...
16
by: gnawz | last post by:
I have a pagination function I am using in a file called functions.php as below<? //Pagination functions function getPagingQuery($sql, $itemPerPage = 10) { if (isset($_GET) && (int)$_GET > 0) ...
1
markrawlingson
by: markrawlingson | last post by:
Hello, For starters: Yes, I am new to asp.net, however I hold a good 9-10 years of experience working with classic asp and am only just now upgrading my skills. I'm picking asp.net up pretty...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.