473,581 Members | 2,514 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ie : form submits happening multiple times

7,872 Recognized Expert Expert
I'm going to stab myself in the face.
I have a page with a single form.
Regular old html.
There are a few checkboxes and textboxes and and two submit buttons (I hope that's not the issue...)
The form submits to itself (I control the backend so I handle it)

When I click the submit button, the form is submitted and I get my page back with a "form submitted" text in a certain place.
As SOON as it finishes loading, it automatically submits itself again.
Using a packet watcher I can see that the request seems to be identical. Both use POST and contain the same content data.
Before that NEW request has finished loaded, it loads the page a THIRD time, this time using a GET request and no content data.

This is very aggrivating. It only appears to happen in ie (I've only test on ie6 though). There is no javascript on the page.

A few more notes:
The page is in a privleged zone so the AUTH header gets sent (it's in there and validated just fine, the "200 ok" is returned to each request without a challenge)
The pages are all marked as no-cache

Anyone heard of this? I gave a quick check on the net and got one hit back to a newsgroup but nothing was resolved.
Nov 29 '07 #1
14 3796
Death Slaught
1,137 Top Contributor
I can't tell where or what your problem is without your code, so please post it.

Thanks, Death
Nov 29 '07 #2
7,872 Recognized Expert Expert
It's just a basic form?
Expand|Select|Wrap|Line Numbers
  1. <form method="post" name="nalarmsconfig" id="alarmsconfig">
  3. <input type="checkbox" name="nAlarmsEnabled" id="AlarmsEnabled"  checked="checked"  />
  4. <textarea name="nEmailList" id="EmailList" cols="40" rows="8" >user@domain.com</textarea><br />
  5. <select name="nAlarmsStart" id="AlarmsStart">
  6.     <option value="0">12:00 AM</option>
  7.     <option value="0">12:00 AM</option>
  8.     <option value="60">1:00 AM</option>
  9.     <option value="120">2:00 AM</option>
  10.     <option value="180">3:00 AM</option>
  11.     <option value="240">4:00 AM</option>
  12.     <option value="300">5:00 AM</option>
  13.     <option value="360">6:00 AM</option>
  14.     <option value="420">7:00 AM</option>
  15.     <option value="480">8:00 AM</option>
  16.     <option value="540">9:00 AM</option>
  17.     <option value="600">10:00 AM</option>
  18.     <option value="660">11:00 AM</option>
  19.     <option value="720">12:00 PM</option>
  20.     <option value="780">1:00 PM</option>
  21.     <option value="840">2:00 PM</option>
  22.     <option value="900">3:00 PM</option>
  23.     <option value="960">4:00 PM</option>
  24.     <option value="1020">5:00 PM</option>
  25.     <option value="1080">6:00 PM</option>
  26.     <option value="1140">7:00 PM</option>
  27.     <option value="1200">8:00 PM</option>
  28.     <option value="1260">9:00 PM</option>
  29.     <option value="1320">10:00 PM</option>
  30.     <option value="1380">11:00 PM</option>
  31. </select><br />
  32. <select name="nAlarmsStop" id="AlarmsStop">
  33.     <option value="1080">6:00 PM</option>
  34.     <option value="0">12:00 AM</option>
  35.     <option value="60">1:00 AM</option>
  36.     <option value="120">2:00 AM</option>
  37.     <option value="180">3:00 AM</option>
  38.     <option value="240">4:00 AM</option>
  39.     <option value="300">5:00 AM</option>
  40.     <option value="360">6:00 AM</option>
  41.     <option value="420">7:00 AM</option>
  42.     <option value="480">8:00 AM</option>
  43.     <option value="540">9:00 AM</option>
  44.     <option value="600">10:00 AM</option>
  45.     <option value="660">11:00 AM</option>
  46.     <option value="720">12:00 PM</option>
  47.     <option value="780">1:00 PM</option>
  48.     <option value="840">2:00 PM</option>
  49.     <option value="900">3:00 PM</option>
  50.     <option value="960">4:00 PM</option>
  51.     <option value="1020">5:00 PM</option>
  52.     <option value="1080">6:00 PM</option>
  53.     <option value="1140">7:00 PM</option>
  54.     <option value="1200">8:00 PM</option>
  55.     <option value="1260">9:00 PM</option>
  56.     <option value="1320">10:00 PM</option>
  57.     <option value="1380">11:00 PM</option>
  58. </select><br />
  59. <input type="checkbox" name="nEnablePowerFailure" id="EnablePowerFailure"  checked="checked" /> 
  60. <input type="checkbox" name="nEnableSagSurge" id="EnableSagSurge" checked="checked" /> 
  61. <input type="text" name="nSagThresh" id="SagThresh"  value="0"/>
  62. <input type="text" name="nSurgeThresh" id="SurgeThresh"  value="0"/>
  63. <input type="checkbox" name="nEnableNGVoltage" id="EnableNGVoltage" checked="checked" />
  64. <input type="text" name="nNGMAX" id="NGMAX"  value="0"/>
  65. <input type="checkbox" name="nEnableTransPeak" id="EnableTransPeak" checked="checked" />
  66. <input type="text" name="nTransSplit" id="TransSplit"  value="0"/>
  67. <input type="text" name="nTransShort" id="TransShort"  value="0"/>
  68. <input type="text" name="nTransLong" id="TransLong"  value="0"/>
  71. <input type="checkbox" name="nEnableTemp" id="EnableTemp" checked="checked" />
  72. <input type="text" name="nMinTemp" id="MinTemp"  value="0"/>
  73. <input type="text" name="nMaxTemp" id="MaxTemp"  value="0"/>
  74. <input type="checkbox" name="nEnableHumidity" id="EnableHumidity" onclick="DoCheck(this);"  checked="checked" />
  75. <input type="text" name="nMinHumid" id="MinHumid"  value="0"/>
  76. <input type="text" name="nMaxHumid" id="MaxHumid"  value="0"/>
  77. <input type="checkbox" name="nEnableAirP" id="EnableAirP" onclick="DoCheck(this);"  checked="checked" />
  78. <input type="text" name="nMinAirP" id="MinAirP"  value="0"/>
  79. <input type="text" name="nMaxAirP" id="MaxAirP"  value="0"/>
  81. <input type="submit" name="nbtSave" id="btSave" value="Save" />
  82. <input type="submit" name="nbtTrigger" id=btTrigger" value="Trigger/Test" />
  83. </form>
There is no action in the FORM because it posts back to itself.
There are two submits buttons, but the value of the NON-clicked one is not passed so it doesn't appear to be getting triggered.
The problem only seems to occur when the checkboxes are checked, as opposed to not checked?
Nov 30 '07 #3
Death Slaught
1,137 Top Contributor
On your 82nd line of code you're missing a " qoute in your id.

Thanks, Death

PS - if you want the form to submit to itself you have to give it the action attribute.

action="nameOfF ile.html"
Nov 30 '07 #4
7,872 Recognized Expert Expert
good eye on that id, I'd missed it myself.
I made both of those changes, unfortunatly it's still doing it.

It's related to content size somehow. I just tested it with one textarea. A small amount of text and it doesn't do it. A LARGE amount of text and it does the POST/POST/GET request pattern.
Nov 30 '07 #5
Death Slaught
1,137 Top Contributor
I don't know what to tell you. Have you tried validating it?

- Death
Dec 1 '07 #6
7,872 Recognized Expert Expert
I got a video cap of what it is doing. (It's not exactly the same every time)
You will see it reload a blank page (with background color) (Uses the POST from the form)
Then start to reload the page correctly, with the words "Settings saved" at the top, but stop before it completely loads it.(Uses POST method still)
It then will make a GET request for the page and let it load entirely.

Unfortuantly it is too big to attach:
Dec 4 '07 #7
7,435 Recognized Expert Expert
I don't see anything wrong with the html you show, other than the validation problems. html can't submit anything on its own so the problem must lie somewhere else.
Dec 4 '07 #8
7,872 Recognized Expert Expert
I don't see anything wrong with the html you show, other than the validation problems. html can't submit anything on its own so the problem must lie somewhere else.
Yea, with IE (your favorite subject hehe)
FF doesn't do it, just IE and just with the content being long (haven't found the cutoff point for it)
I don't know it expected me to issuse multiple replies and segment it out, but it never sends any of the CONTINUE headers, and I reply back with Connection: Close in the header too.

I might just have to switch to xmlhttprequest for submition, it didn't have that problem.
Dec 4 '07 #9
7,872 Recognized Expert Expert
Now it seems that if the content amount is long enough IE just goes to a blank white page and does nothing. If it's a little less content, it does the multiple post thing.

My latest solution:
Expand|Select|Wrap|Line Numbers
  1. <span class="Example">Internet Explorer users may experiance some flickering durring the save process</span>
Dec 4 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

by: chinagirl | last post by:
I have a javascript that displays couple of buttons, which are directional (e.g., click button it goes to a particular page). I need to have these buttons shows up multiple times in same page, each represent a different direction but buttons themself are from the same gif file. What's the most effecient way to do this? Any info would be...
by: Jonathan Duke | last post by:
I have written a custom session state provider that stores session data in XML in a SQL database , and I was running the SQL profiler to verify that all of my stored procedures were called in the correct situations. Each time I visited certain pages, I noticed that the SP called by the ResetItemTimeout method was called multiple times in a...
by: Brett Romero | last post by:
If my UI app uses three DLLs and two of those DLLs reference something named utilities.dll, does the UI app load utilities.dll twice or does the compiler recognize what is going on and load utilities.dll just once? Thanks, Brett
by: yk | last post by:
Hi, Is it a technique available in html/javascript in order to display same image many many times on a same page? Because of a large page loading I am looking for a way not to have same image many times in a page load, but rather once. Yefim
by: Mangler | last post by:
I created a barcode: <% RMABarCode = Request.Form("idrma") IF Len(RMABarCode) Then response.write "<img src='barcode.asp?code=" & RMABarCode & "&height=25&width=1&mode=code39'>" End If %> Does anyone know how to display that barcode multiple times through a
by: billa856 | last post by:
Hi, My project is in MS Access 2002. In that I want to open one form multiple times. I put one button on my main form. Now whenever I click on that button than form will be open. Now when I click again on that same button than it will open same form again in seperate window. But instead of that already open form comes.and so i couldn't open...
by: 0utlawza | last post by:
Hi Guys It seems i posted this in the incorrect topic, so i am reposting here. Please excuse the Newbie question. I am not really a programmer so excuse me if i dont clarify my point correctly. I am trying to debug an ex-employee's web code and seem to sinking here. Let me try to explain. We are receiving few blank submit forms via a...
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...
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
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...
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...
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...
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
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...
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.