SunQuest
           Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old May 31st, 2001, 06:03 AM
yitz yitz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: jerusalem
Posts: 0 yitz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to yitz Send a message via Yahoo to yitz
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.

Reply With Quote
  #2  
Old June 5th, 2001, 07:05 PM
wabirdman wabirdman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Australia
Posts: 111 wabirdman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 19 sec
Reputation Power: 8
form problem

are you using the <dtml-sendmail> tag???

if possile could you post a copy of the script to look at??

wabirdman

Reply With Quote
  #3  
Old June 6th, 2001, 04:37 AM
yitz yitz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: jerusalem
Posts: 0 yitz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to yitz Send a message via Yahoo to yitz
Question 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">)

Reply With Quote
  #4  
Old June 6th, 2001, 07:03 PM
wabirdman wabirdman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Australia
Posts: 111 wabirdman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 19 sec
Reputation Power: 8
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>&nbsp;</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">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</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">&nbsp;</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

Reply With Quote
  #5  
Old February 3rd, 2003, 08:44 AM
mstorfjo mstorfjo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Oslo, Norway
Posts: 0 mstorfjo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question 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

Reply With Quote
  #6  
Old February 6th, 2003, 08:20 PM
ZeUs's Avatar
ZeUs ZeUs is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: St. George, Utah
Posts: 63 ZeUs User rank is Sergeant Major (2000 - 5000 Reputation Level)ZeUs User rank is Sergeant Major (2000 - 5000 Reputation Level)ZeUs User rank is Sergeant Major (2000 - 5000 Reputation Level)ZeUs User rank is Sergeant Major (2000 - 5000 Reputation Level)ZeUs User rank is Sergeant Major (2000 - 5000 Reputation Level)ZeUs User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 31
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

Reply With Quote
  #7  
Old February 7th, 2003, 04:42 AM
mstorfjo mstorfjo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Oslo, Norway
Posts: 0 mstorfjo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks

Works fine now.

Monica.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > too much text in TEXTAREA, SUBMIT does nothing??


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway