473,544 Members | 1,857 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Max Character Web Form to Print Template

3 New Member
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 1862
16,027 Recognized Expert Moderator MVP
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

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 character which is represented by the number( in this example, it would be the hardcoded character © the copyright character) for output.
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 template and print. Any suggestions ? Select Template _______________________ -Jay
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 should not be limited to a number of characters. All the information is transferred to a word template. I do not want to store the evaluation...
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 manually? The Find and Replace function does not work as it does not recognize this character. Thanks in advance for any advice. Peter Tyler
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 form customized with the client's name, etc... I was thinking of using MS Word and automating it with client side VBScript. I want to store the...
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 the target encoding (as described in PEP 293). The thing to note here is that the error handler itself is required to return the substitutions as...
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 from the user (although eventually it will need to be read from a serial port) and generate a print preview of the form but I don't know how to...
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 legal multibyte sequence or I just put the unicode number
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 am produced a form which if i type in, then enter, the news on the homepage is changed. I can do this on a single page, but on a separate page is a...
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.