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

Size limit for submit using post ?

I have a problem with a javascript that seems related to the number/size of
parameters sent by the form
The method for the form is POST (not GET, I know the size limit with
GET)
The symptom : some times, I receive a javascript error "Invalid syntax
on line xxx", this line contains the call to submit as shown in the
following lines :

<input type="button"
value="<%=Session("Bouton_EnregistrerFicheInclusio n")%>"
style="{width:100%}"
onclick="AfficherTousOnglets(); if
(form_check()){document.forms[0].submit(); }"
name="Validation">

To debug that, I inserted an alert("hello") just before the
document.forms[0].submit(); the alert message was OK, but
the "invalid syntax" on the submit was still there.
I also tried to change document.forms[0] to document.form1 (the name of
the form) and document.getelementById
The number of input fields for this form is around 250
The problem does not appear when few fields are filled.
I could not find any information on a size limit with the POST method

The navigator is IE6. The page is to complex for Netscape.
With FireBird no problem : everything work fine

Any ideas ?
Thank for your answer

Gérard Cany

Rapsodie

Batiment T4

Parc Technologique de la Pompignane

34 055 Montpellier Cedex 1

tel : 04 67 13 82 05
fax : 04 67 99 05 63
mobile : 06 07 97 64 13
E-mail : Ge*********@rapsodie.fr
Jul 20 '05 #1
1 7218
VK
> ... value="<%=Session("Bouton_EnregistrerFicheInclusio n")%>" style=...

Try to split this line apart based on quotes only (this is exactly how
JavaScript interpreter does):

Option 1:
....value="[string
begins]<%=Session("Bouton_EnregistrerFicheInclusion")%> "[string ends]...
Option 2:
....value="[string begins]<%=Session("[string
ends]Bouton_EnregistrerFicheInclusion"[string begins])%>"[string ends]
Also options 3, 4, x...
What option will be selected next time, depends on unpredictable
fluctuations inside the interpreter.

This is why NEVER USE THE SAME TYPE OF QUOTES TO DELIMIT A STRING AND
INSIDE THAT STRING (print it out and attach to the monitor :-)

Solution 1 (escaping quotes inside the string)
....value="<%=Session(\"Bouton_EnregistrerFicheInc lusion\")%>"...

Solution 2 (the best, using different types of quotes):
....value='<%=Session("Bouton_EnregistrerFicheIncl usion")%>'... or
....value="<%=Session('Bouton_EnregistrerFicheIncl usion')%>"...

P.S. Post method has no built-in transfer limitations: 1MB, 100MB or the
entire Web. But usually there are some reasonable limits set on the
server-side.
Jul 20 '05 #2

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

Similar topics

1
by: Cal Lidderdale | last post by:
I've built a OutOfOffice calendar in PHP. Each month is a standalone table, the first column being the person's name. Then N cells, one for each day of the month. And I have 2 Calendars: a nice...
2
by: Andy Fish | last post by:
Hi, I am in the process of designing a UI which has to be fairly sophisticated. There will be a number of list boxes and other controls, with pop-up windows to edit certain properties. It's the...
4
by: vigori | last post by:
I have an application that send a file to a web service (I built both the application and the web service) I set the max file size via web.config of the web service: <httpRuntime...
27
by: ted benedict | last post by:
hi everybody, i hope this is the right place to discuss this weird behaviour. i am getting dynamically generated text or xml from the server side using xmlhttprequest. if the server side data is...
8
by: Ben | last post by:
Thanks in advance for any help. I am attempting to pass a large number of ID's using window.open in javascript. The number of the ID's exceeds the querystring length. Therefore, I would like to...
3
by: Jefferis NoSpamme | last post by:
Hello all, I'm trying to limit the file size to 1 meg on upload of image files and I am trying a script from javascript internet, but it is giving me errors on IE ² is null or not an object ³...
5
by: Jefferis NoSpamme | last post by:
Hi all, I'm trying to limit the file size of an image submission and I keep running into various problems. I've got most of it working, but I'm stumped and I have a basic question as to WHY this...
2
by: brian.lukoff | last post by:
What is the maximum size of POST data? A page on the ASP FAQ web site (http://classicasp.aspfaq.com/forms/what-is-the-limit-on-form/post-parameters.html) is confusing me: "While GET is limited...
1
by: helraizer1 | last post by:
Hi folks, In my script I have this code: <?php unset($errors); include ("linesfile.php5");
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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
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...

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.