473,412 Members | 2,096 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,412 software developers and data experts.

Does input field can store a thousand characters?

Hi,

I need to create a hidden field (the same as input field), but this
field needs to store at least a thousand characters? It is possible
when submitting those data to the server? Any help is really
appreciated.

Thanks
Chamnap
Jan 7 '08 #1
12 1353
Chamnap wrote:
Hi,

I need to create a hidden field (the same as input field), but this
field needs to store at least a thousand characters?
>It is possible when submitting those data to the server?
Yes, using POST method of the FORM element.Mick
Jan 7 '08 #2
Chamnap wrote:
I need to create a hidden field (the same as input field), but this
field needs to store at least a thousand characters?
You should have no problem if you use METHOD=POST. If you use METHOD=GET
then you may run into a limitation on the maximum length of the input
string. You'd also generate some very funny looking URL's is you used GET.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Jan 7 '08 #3
Chamnap said:
Hi,

I need to create a hidden field (the same as input field), but this
field needs to store at least a thousand characters?
Your question has already been answered, of course, just as an aside, if
you're interested in preserving the newlines and such in the text, you
will want to make sure you're using either a textarea or an input with
multiline="true" set as an attribute.

/* End completely unnecessary post */

~A!

--
anthony at my pet programmer dot com
Jan 7 '08 #4
Anthony Levensalor wrote:
Chamnap said:
>I need to create a hidden field (the same as input field), but this
field needs to store at least a thousand characters?

Your question has already been answered, of course, just as an aside, if
you're interested in preserving the newlines and such in the text, you
will want to make sure you're using either a textarea or an input with
multiline="true" set as an attribute.
However, that attribute is, of course, not Valid at all.
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Jan 8 '08 #5
One more question, guys! I need to handle ajax json response. Beside
using eval ( "(" + request.responseText + ")" ), are there any ways
beside that? eval should be used here or not?

Thanks
Chamnap
Jan 8 '08 #6
Thomas 'PointedEars' Lahn said:
However, that attribute is, of course, not Valid at all.
Of course, according to
http://www.w3.org/TR/html4/interact/forms.html#h-17.4

You're 100% correct. I hereby amend my response to read:
"if you're interested in preserving the newlines and such in the text,
you will want to make sure you're using a textarea."

And if you could sound just a teensy bit more snotty, I'd find the
energy to call you out on it. You're like that teacher that needs his
students to feel like morons so that he can feel good about himself.

Honestly, life is not that bad.

Here's another way to say it, just for the edification of people who do
not want to be, well, ire-inducing:

"Don't use the multiline attribute, as it is not valid markup according to:
http://www.w3.org/TR/html4/interact/forms.html#h-17.4"

Or another:

"That last comment about multiline is actually invalid markup, check out
http://www.w3.org/TR/html4/interact/forms.html#h-17.4"

OR:

"Oops, I wouldn't count on multiline to work, it's not valid markup. The
official specification for the input tag is located at:
http://www.w3.org/TR/html4/interact/forms.html#h-17.4"

And I suppose there are about 32,768 other ways to say it that wouldn't
infer that the person you're correcting should have known better by some
kind of osmosis.

Please do notice as well that rather than just making a flippant
comment, references are fun and very educational.

And blah, who cares? It's usenet, right? We get to be whatever kind of
lofty, crusty old jerks we wanna be, because no one can call us on our
natures. Hell, we're above normal human interaction, we code for a living!

Oh, and thanks for the correction. Much obliged.

~A!

--
anthony at my pet programmer dot com
Jan 8 '08 #7
Chamnap said:
One more question, guys! I need to handle ajax json response. Beside
using eval ( "(" + request.responseText + ")" ), are there any ways
beside that? eval should be used here or not?
We just spent some time discussing that, actually. Here's a link to that
discussion:
http://groups.google.com/group/comp....dd48f8456744b4

Sorry for the long url, I am far too lazy to tinyurl it this evening.

~A!
--
anthony at my pet programmer dot com
Jan 8 '08 #8
Sorry for the long url, I am far too lazy to tinyurl it this evening.

Never mind, thanks!

Chamnap
Jan 8 '08 #9
Anthony Levensalor said the following on 1/7/2008 8:34 PM:
Chamnap said:
>One more question, guys! I need to handle ajax json response. Beside
using eval ( "(" + request.responseText + ")" ), are there any ways
beside that? eval should be used here or not?

We just spent some time discussing that, actually. Here's a link to that
discussion:
http://groups.google.com/group/comp....dd48f8456744b4
Sorry for the long url, I am far too lazy to tinyurl it this evening.
When given the choice between an actual URL and a tinyurl, in
comp.lang.javascript, post the actual URL. It lets people know exactly
where they are going instead of wherever tinyurl decides to redirect
them to.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 8 '08 #10
On Tue, 08 Jan 2008 00:17:43 -0500, Randy Webb wrote:
When given the choice between an actual URL and a tinyurl, in
comp.lang.javascript, post the actual URL. It lets people know exactly
where they are going instead of wherever tinyurl decides to redirect
them to.
There are some well-explained reasons to avoid tinyurl's here:

<URL: http://gojomo.blogspot.com/2006/02/t...evil-urls.html >

Not to mention that indirect links through tinyurl and other type services
do not count as links in search engine ranking. When someone thinks
enough of my stuff to link to it, but takes an extra step to not let
Google know, it kind of irks me. *grin*
Jan 8 '08 #11
Jeremy J Starcher said the following on 1/8/2008 12:29 AM:
On Tue, 08 Jan 2008 00:17:43 -0500, Randy Webb wrote:
>When given the choice between an actual URL and a tinyurl, in
comp.lang.javascript, post the actual URL. It lets people know exactly
where they are going instead of wherever tinyurl decides to redirect
them to.

There are some well-explained reasons to avoid tinyurl's here:

<URL: http://gojomo.blogspot.com/2006/02/t...evil-urls.html >
I had never seen that before, not even one like it. I have it saved now
for the future URL services. Thank you :)

I hate issue #1 the most. I want to know where a link is going to take me.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 8 '08 #12
Randy Webb said:
Jeremy J Starcher said the following on 1/8/2008 12:29 AM:
>There are some well-explained reasons to avoid tinyurl's here:

<URL: http://gojomo.blogspot.com/2006/02/t...evil-urls.html >

I had never seen that before, not even one like it. I have it saved now
for the future URL services. Thank you :)

I hate issue #1 the most. I want to know where a link is going to take me.
Thanks, guys! I appreciate the feedback!

~A!
--
anthony at my pet programmer dot com
Jan 8 '08 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: jason | last post by:
Can someone tell me if it is possible to store the contents of a TEXT AREA field in HIDDEN FIELD in another page after the initial form containing the textarea is submittted.... I need to do...
2
by: Corepaul | last post by:
As input is typed into a text box, I would like to search a recordset for the first record that matches what has been typed so far. I would like to update the text box to display the letters typed...
3
by: AA Arens | last post by:
When I want the first character of a field to be Uppercased, I need to make an input mask, like >L< followed by ??????? for example. But this mask creates ____ in an unfilled field, which I don't...
7
by: hugo27 | last post by:
obrhy8 June 18, 2004 Most compilers define EOF as -1. I'm just putting my toes in the water with a student's model named Miracle C. The ..h documentation of this compiler does state that when...
6
by: alternativa | last post by:
Hi, I have problem with the following function - it was intended to ask a user for a 4-digits number: double ask_for_number (void) { char *notint; char s2; double entered_number;
5
by: Henrik | last post by:
The problem is (using MS Access 2003) I am unable to retrieve long strings (255 chars) from calculated fields through a recordset. The data takes the trip in three phases: 1. A custom public...
130
by: Daniel Manes | last post by:
I'm baffled. I have a column in a SQL Server Express database called "Longitude," which is a float. When I view the table in a DataGridView, some of the numbers, which only have two decimal places...
1
ADezii
by: ADezii | last post by:
The following characters define an Input Mask: Character - Description 0 - Digit (0 to 9, entry required, plus and minus signs not allowed). 9 - Digit or space (entry not required, plus...
7
by: Amit | last post by:
Dear Friends I need to write a Java Script for a string payment_code which comes populated from a text field , should contain only 0-9,A-Z,a-z,Space ' ',Hyphen '-',Full stop '.',Comma ',',Plus...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.