473,395 Members | 1,790 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,395 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 3617
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.