The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> Python Programming
|
too much text in TEXTAREA, SUBMIT does nothing??
Discuss too much text in TEXTAREA, SUBMIT does nothing?? in the Python Programming forum on Dev Shed. too much text in TEXTAREA, SUBMIT does nothing?? Python Programming forum discussing coding techniques, tips and tricks, and Zope related information. Python was designed from the ground up to be a completely object-oriented programming language.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

May 31st, 2001, 06:03 AM
|
|
Junior Member
|
|
Join Date: May 2001
Location: jerusalem
Posts: 0
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
too much text in TEXTAREA, SUBMIT does nothing??
i'm trying to allow large amounts of text, like up to 6 pages of text to be inputted into form that then sends it off to a ZSQLMethod, and puts it in a database..
for some reason, if more than two or three reasonably sized paragraphs are in the textarea, clicking submit does absolutely nothing? (i'm not even sure it hits the server for a second)
I was playing with the demo database. So i thought maybe the limitation was in the database, and I installed MySQL and switched my ZSQLMethod to use the mySQL database instead, and I get exactly the same problem--- it all works flawlessly unless too much text is placed in the TEXTAREA, and then nothing at all happens?
(it isn't a browser limitation--i can post the texts that fail to my perl-cgi guestbook without any trouble; so it must be related to zope somehow??)
I am using Zope as my wwwebserver (i was just testing out implementing a site in Zope) as well, so maybe the problem stems from here?
any ideas, information or pointers on better places to look would be appreciated.. i've searched for a solution to this problem for weeks already.
|

June 5th, 2001, 07:05 PM
|
|
Contributing User
|
|
Join Date: Aug 2000
Location: Australia
Posts: 111
Time spent in forums: 7 m 19 sec
Reputation Power: 13
|
|
|
form problem
are you using the <dtml-sendmail> tag???
if possile could you post a copy of the script to look at??
wabirdman
|

June 6th, 2001, 04:37 AM
|
|
Junior Member
|
|
Join Date: May 2001
Location: jerusalem
Posts: 0
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
actually
weird thing is .. i decided somehow it must be browser related.. because it doesn't seem to hit the server at all.. pressing submit just does _nothing_? so i tried the same page with Opera.. and shockingly enough it worked perfectly ??? perhaps MS implemented textareas weirdly? like a default textarea content limit(but it seems to work strangely?) and perhaps they have a secret parameter i can use to extend the maximum textarea length? who knows.. if you want to see it working you can hit
URL
(my office computer) to see for yourself
i'm not using sendmail..
i have in the DTML:<form action=process_add>
(to see the rest of the HTML you can just view_source on the page whose URL is listed above..)
proccess add is a DTMLmethod:
<dtml-var standard_html_header>
<dtml-call add_dvar>
<p>
Thank you for adding to the treeOfLife online torah database.
</p>
<dtml-var standard_html_footer>
and add_dvar is a ZSQLMethod that expects 6 params:
auser abook aperek apassuk atitle acontent
whose body is simply:
insert into dvarim (user,book,perek,passuk,title,content) values
(<dtml-sqlvar auser type="string">,
<dtml-sqlvar abook type="int">,
<dtml-sqlvar aperek type="int">,
<dtml-sqlvar apassuk type="int">,
<dtml-sqlvar atitle type="string">,
<dtml-sqlvar acontent type="string">)
|

June 6th, 2001, 07:03 PM
|
|
Contributing User
|
|
Join Date: Aug 2000
Location: Australia
Posts: 111
Time spent in forums: 7 m 19 sec
Reputation Power: 13
|
|
|
sendmail
I had a look at the site and tried to send a reply but got an error. The error is to do with abook (one of the variables)
I will post some script here of a form that submits to itself and then emails you notification
<TABLE width=80%>
<!--#if submitted -->
<TR><TD>
<!--#with REQUEST -->
<dtml-sendmail smtphost="host here">
To: email address here
Cc: email address here(you dont have to have a Cc)
Cc: email address here
From: <!--#var AUTHENTICATED_USER -->@b-online.com.au
Subject: Intranet Feedback Form
------------------------------------------------
Intranet Feedback Form
------------------------------------------------
Subject: <dtml-if subject><dtml-var subject></dtml-if>
Comments: <dtml-if comment><dtml-var comment></dtml-if>
</dtml-sendmail>
<h3>Thank you</h3>
<P>Thank you for taking the time to fill in the B Intranet Feedback form.<BR>
<BR><a href="return url">Click Here to Return to Main Page</a></P>
<P></P>
<!--#/with -->
</TD></TR>
<!--#else -->
<TR><TD>
<br>
<br>
<b>Please fill out the B Intranet Feedback form with any Additions, Improvements,
Problems, Praise or Feedback.</b>
<br>
<br>
<BR>
</TD></TR>
<TR><TD>
<SCRIPT LANGUAGE=javascript>
<!--
function fnSendRequest(){
if (document.thisForm.subject.value=="") {
alert("Please enter the subject");
document.thisForm.subject.focus();
return false;
}
if (document.thisForm.comment.value == "") {
alert("Please enter comments");
document.thisForm.comment.focus();
return false;
}
}
//-->
</SCRIPT>
<FORM action="index_html" method=GET name=thisForm LANGUAGE="javascript" onSubmit="return fnSendRequest();">
<P> </P>
<TABLE cellSpacing=1 cellPadding=1 width="75%" border=0>
<TR>
<TD align=left valign=top><B>Subject: </B></TD>
<TD></TD>
<TD><INPUT name=subject value="<dtml-if subject><dtml-var subject></dtml-if>"></TD></TR>
<TR>
<TD align=left valign=top><B>Comments: </B></TD>
<TD></TD>
<TD><TEXTAREA name=comment value="<dtml-if comment><dtml-var comment></dtml-if>" cols=50 rows=10 wrap=virtual></TEXTAREA></TD></TR>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td> </td>
<td align="middle" vAlign="center" colspan="2">
<input name="cmdSave" type="submit" value=" Send ">
<input name="cmdReset" type="button" value=" Cancel " LANGUAGE="javascript" onClick="history.back();">
</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</TABLE></P>
<input type=hidden name=submitted value=1>
</FORM>
<!--#/if-->
</TD></TR></TABLE>
have a read through this and then see how you go
wabirdman
|

February 3rd, 2003, 08:44 AM
|
|
Junior Member
|
|
Join Date: Feb 2003
Location: Oslo, Norway
Posts: 0
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
A solution?
Hello yitz.
Did you find a solution to the problem? I have the same problem in a little project. I don't think changing the browser will be a solution to us.
Three question:
* Witch version of Internet Explorer did you experienced the problem in?
* Did you try other versjon of Internet Explorer?
* Did you find a work-around to the problem?
I hope you can help me, my boss is getting stressed
Thanks
Regards from
Monica
|

February 6th, 2003, 08:20 PM
|
 |
Contributing User
|
|
Join Date: Jan 2001
Location: St. George, Utah
|
|
|
Try using POST as your form's method, instead of GET, especially if you are submitting any appreciable amount of data (which is what textareas usually handle).
__________________
Lucas Marshall
|

February 7th, 2003, 04:42 AM
|
|
Junior Member
|
|
Join Date: Feb 2003
Location: Oslo, Norway
Posts: 0
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Thanks
Works fine now.
Monica.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|