473,433 Members | 1,913 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,433 software developers and data experts.

Max Character Web Form to Print Template

I want to build a web form that has text areas with max character limits, and ensure that the text generated from the form will fit within allotted spaces in an InDesign Print Template. The text areas will contain headers and paragraphs.

My problem is, how do I determine the max character limit? A text area that comfortably fits 1000 characters when there are 2 or 3 headers will not fit 1000 characters if there are, say, 15+ headers—since headers take up more vertical space per character than paragraphs.

Of course I'll have room to fudge with line height/kerning if I just guess an average use. And I don't foresee a huge issue. But what if a client stays under the max character limit but has a crap-ton of headers all with one line paragraphs. Overflow. I don't want to contact clients to say, "I gave you a limit, but your text still doesn't fit."

The only solution I see is some kind of "remaining characters indicator" where the number goes down as you type. And if you add a header characters, it subtracts faster than if you add paragraph characters. Is this possible to build into a web form?

Can you think of any other solution?
May 17 '07 #1
1 1857
acoder
16,027 Expert Mod 8TB
What is the proportion between headers and paragraphs?

You can use onkeyup to detect key strokes on the textarea.
May 17 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Andrzej Jan Taramina | last post by:
I have a need to convert a number into the character that it represents. For example, if I have: <xsl:variable name="number" select="169"/> I want to be able to convert this to the...
5
by: Jay Villa | last post by:
I am planning to implement some templates (around 30 templates). User will select this template from the drop down and click print. When it prints it should populate few fields from the form to...
1
by: Rob NYS | last post by:
I have a bound form for employee evaluations. This form brings in the Name, Employee Number, SSN etc. I have 8 unbound text boxes for evaluation info to be entered into. From my understanding these...
7
by: Peter Tyler | last post by:
I have imported large text fields from Excel into Access 2000 which contain many repetitions of the Carriage Return character similar to "â–ˇ". How can I strip them out without doing it...
5
by: | last post by:
When completing certain types of transactions, the users of my app will need to have the clients sign an authorization form. I want to add a button to the page that allows them to print the auth...
2
by: Jukka Aho | last post by:
When converting Unicode strings to legacy character encodings, it is possible to register a custom error handler that will catch and process all code points that do not have a direct equivalent in...
2
by: Rodo | last post by:
Hi all, We have a "testing report" form at work that we fill with data (typing for now). The form has a table, other lines and a company logo. I can make a windows form that will get the data...
7
by: =?gb2312?B?yMvR1MLkyNXKx8zs0cSjrM37vKvM7NHEsru8+7z | last post by:
Who could explain the follow issue ? ¦¤ Traceback (most recent call last): File "<stdin>", line 1, in <module> UnicodeEncodeError: 'gbk' codec can't encode character u'\x80' in position 0: il...
8
by: josephman1988 | last post by:
What i want to do, is have content on a homepage, which can be edited via a form on a restricted page. E.G. I have news on home page, when i go to a restricted page (e.g. mysite.co.uk/admin) i...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
1
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.