I wanted to use a textarea with iUi, and when I changed the text in
the textarea and submitted it, the text would not be submitted - I
made the following change to the encodeform function in iui.js, and it
fixed my problem

function encodeForm(form)
{
    function encode(inputs)
    {
        for (var i = 0; i < inputs.length; ++i)
        {
            if (inputs[i].name)
                args.push(inputs[i].name + "=" +
escape(inputs[i].value));
        }
    }

    var args = [];
    encode(form.getElementsByTagName("input"));
        encode(form.getElementsByTagName("textarea"));//I added this
    encode(form.getElementsByTagName("select"));
    return args;
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" 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/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to