I populate a form and send it by Ajax.updater.
Sometimes, 1 out of 1000 transmissions, the form data gets garbled.
Fields missing, strings truncated, or repeated, sometimes overwriting
other fields.

All communications is HTTPS. This happen only with IE 6 and 7, not
with Safari or Firefox.
Anybody recognize this?

function sendItemUpdate() {

        var ajax = new Ajax.Updater(
                { success: 'ajaxResult'}, '/TimeValueUpdater.jsp',
                { method: 'post',
                encoding: 'UTF-8',
                asynchronous:true,
                evalScripts:true,
                parameters:Form.serialize('Ajaxform', false) } );
        }

function sendByForm(fieldpos, datum, projid, actid) {
        document.getElementById('val' +
fieldpos).value=document.getElementById('zero' + fieldpos).value;
        document.getElementById('mark' + fieldpos).className = 'empty';

        document.Ajaxdata.Cmd.value=(document.getElementById('id' +
fieldpos).value.length == 0) ? 'Add' : 'Update';
        document.Ajaxdata.Projid.value=projid;
        document.Ajaxdata.Actid.value=actid;
        document.Ajaxdata.Timval.value=document.getElementById('val' +
fieldpos).value;
        document.Ajaxdata.Datum.value=datum;
        document.Ajaxdata.id.value=document.getElementById('id' +
fieldpos).value;
        document.Ajaxdata.Fieldno.value=fieldpos;
        
document.Ajaxdata.KommEncoded.value=escape(document.getElementById('spec'
+ fieldpos).value);
        document.Ajaxdata.Timestamp.value=(new Date).getTime();

        document.getElementById('zero' + fieldpos).value='';
        sendItemUpdate();
        }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to