[htmltmpl] Re: HTML::Pager and <SCRIPT> tag
Brought to you by:
samtregar
From: Mark S. <ma...@su...> - 2004-03-21 19:48:28
|
On 2004-03-18, Martijn van den Burg <Mar...@as...> wrote: > Hi, > > Since there's no list for HTML::Pager I thought I could get away with an > OT post in its companion module, H::T. > > H::P inserts the tag <SCRIPT LANGUAGE="Javascript"> at the position > where the template variable PAGER_JAVASCRIPT is inserted. My problem is > that this tag is not valid HTML 4.01 or XHTML, and hence my pages that > use H::P aren't, either. > > Proposed solution: change this tag into <script type="text/javascript"> > (lowercase chars). I looked at HTML::Pager and ran into the same standards compliance issues (months ago). Eventually, I found it was much simpler and more intuitive to use "Data::Page" and "Data::PageSet" to handle the paging. Because they don't generate /any/ HTML, you won't have these problems. You can also easily build your navigation using the HTML::Template API you are already used to. After rolling my own, and trying HTML::Pager, I've been quite happy with Data::Page and related modules for several projects. There is a bug report about the standards compliance issue here: http://rt.cpan.org/NoAuth/Bug.html?id=2471 The bug report has been open for 11 months, and HTML::Pager appears that it hasn't been updated for nearly 4 years. Mark -- http://mark.stosberg.com/ |