DTML-IN not using SIZE parameter in HDML coding.
I'm working on an HDML page to displayed on a WAP-enabled phone. Its all done in Zope. The application works great. It asks you for part of a company name to search for, submits and queries a database and returns a list of company names that match. However, it seems to be ignoring the size parameter of the dtml-in tag. So long at the list is fewer than 10 it works fine. If over that, the phone can't handle the display of the page and throws an error. Not a Zope error but one from the phone. Any idea why size would not work with HDML? Thanks Allen
I think I can regurgitate words from Chris to me: Bit by the orphan bug! <dtml-in .... size=10 orphan=0> If you have size=10, but there are 13 records, you get 13 unless you specify the orphan=0. Check the DTML ref guide on <DTML-IN> for more info. Paz (I love to sound smart at someone else's expense) -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Schmidt, Allen J. Sent: Friday, July 13, 2001 4:11 PM To: zope@zope.org Subject: [Zope] DTML-IN not using SIZE parameter in HDML coding. I'm working on an HDML page to displayed on a WAP-enabled phone. Its all done in Zope. The application works great. It asks you for part of a company name to search for, submits and queries a database and returns a list of company names that match. However, it seems to be ignoring the size parameter of the dtml-in tag. So long at the list is fewer than 10 it works fine. If over that, the phone can't handle the display of the page and throws an error. Not a Zope error but one from the phone. Any idea why size would not work with HDML? Thanks Allen _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Mobile pages like HDML/WML has page size limits, which use to be the problem. The size attribute of the dtml-in tag doesn't ensure you a target page size, which depends on the number of all the characters within the page, including WML/HDML tags. For WML the page size limit is 1400 bytes. Ausum "Schmidt, Allen J." wrote:
I'm working on an HDML page to displayed on a WAP-enabled phone. Its all done in Zope. The application works great. It asks you for part of a company name to search for, submits and queries a database and returns a list of company names that match. However, it seems to be ignoring the size parameter of the dtml-in tag. So long at the list is fewer than 10 it works fine. If over that, the phone can't handle the display of the page and throws an error. Not a Zope error but one from the phone.
Any idea why size would not work with HDML?
Thanks
Allen
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Schmidt, Allen J. writes:
.... However, it seems to be ignoring the size parameter of the dtml-in tag. I use:
<dtml-in "_.range(10)" size=2 orphan=0> <dtml-var sequence-item> </dtml-in> and it works perfect.
Any idea why size would not work with HDML? "dtml-in" does not know that it is used to produce "HDML".
The problem would need to be general which is unlikely. Dieter
participants (4)
-
Ausum -
Dieter Maurer -
Paul Zwarts -
Schmidt, Allen J.