473,803 Members | 1,992 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="<%=Sessi on("Bouton_Enre gistrerFicheInc lusion")%>"
style="{width:1 00%}"
onclick="Affich erTousOnglets() ; if
(form_check()){ document.forms[0].submit(); }"
name="Validatio n">

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.getele mentById
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*********@rap sodie.fr
Jul 20 '05 #1
1 7268
VK
> ... value="<%=Sessi on("Bouton_Enre gistrerFicheInc lusion")%>" style=...

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

Option 1:
....value="[string
begins]<%=Session("Bou ton_Enregistrer FicheInclusion" )%>"[string ends]...
Option 2:
....value="[string begins]<%=Session("[string
ends]Bouton_Enregist rerFicheInclusi on"[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="<%=S ession(\"Bouton _EnregistrerFic heInclusion\")% >"...

Solution 2 (the best, using different types of quotes):
....value='<%=S ession("Bouton_ EnregistrerFich eInclusion")%>' ... or
....value="<%=S ession('Bouton_ EnregistrerFich eInclusion')%>" ...

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
22298
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 looking read-only and a working calendar where each "day" is "<input name=$empidx$doy type=text size=1..." that allows a supervisor to edit V(aca), S(ick) etc. and then save to a MySql DB. It was working fine until I was asked to add 9 new names...
2
12977
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 kind of thing I would normally have done in VB but I want it to be browser-based. I've only used javascript for trivial things before so this would be my first serious javascript development. I would like it to run on all reasonably recent...
4
7222
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 executionTimeout="1800" maxRequestLength="5000" /> When the file size exceed 5000 (kb) I receive the right exception (System.Web.Services.Protocols.SoapException) that tell me that the dimension
27
13076
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 STATIC, i can have whatever size of data i want. but if the data (xml or text) is generated dynamically using php, then there seems to be a size limit! xmlhttprequest's responseText is truncated, and the xml therefore not well fromed. in border...
8
6582
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 somehow use the POST method to submit. (or another method without rewriting the ASP page!) Please review the code below before submitting since this can be easily done but I am not sure how using <body onload... >. %> <body...
3
13143
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 ³ and isn¹t checking the file size or preventing the upload. ERROR IS <<<<Œthis.form.uploadfile.value² is null or not an object on this line:
5
3737
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 works at all! if ($_FILES !="") { if ($_FILES<=0) { header("Location: /fileerror.php"); exit; }
2
22587
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 to as low as 1024 characters, POST data is limited to 2 MB on IIS 4.0, and 128 KB on IIS 5.0. Each name/value is limited to 1024 characters, as imposed by the SGML spec." Does this last sentence mean that no form field can submit more than 1024...
1
1733
by: helraizer1 | last post by:
Hi folks, In my script I have this code: <?php unset($errors); include ("linesfile.php5");
0
9562
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10289
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10068
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 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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9119
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6840
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5496
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3795
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2968
bsmnconsultancy
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.