[imp] problem with non-ascii chars editing identities and polish interface

Grzegorz Staleñczyk scs at uwb.edu.pl
Fri Jan 13 00:03:19 PST 2006



irlho> And what HTML/Javascript code *is* in that line on your genereated  
irlho> page source?

All javascript code is:
<!--

var identities = new Array();
identities[0] = new Array();
identities[0][0] = new Array("id", "text", decodeURIComponent("Domyslna%20tozsamosc"));
identities[0][1] = new Array("fullname", "text", decodeURIComponent(""));
identities[0][2] = new Array("from_addr", "text", decodeURIComponent(""));
identities[1] = new Array();
identities[1][0] = new Array("id", "text", decodeURIComponent("%B6%B1%E6%BC%EA"));
identities[1][1] = new Array("fullname", "text", decodeURIComponent("%B6%B1%E6%BC%EA"));
identities[1][2] = new Array("from_addr", "text", decodeURIComponent(""));

function newChoice()
{
    var field, val;
    var index = document.prefs.identity.selectedIndex;
    var id = document.prefs.identity.options[index].value;
    if (id < 0) {
        document.prefs.reset();
        document.prefs.identity.selectedIndex = index;
        return;
    }
    for (var i = 0; i < identities[id].length; i++) {
        field = eval("document.prefs." + identities[id][i][0]);
        val = identities[id][i][2];
        switch (identities[id][i][1]) {
        case "enum":
            for (var j = 0; j < field.options.length; j++) {
                if (field.options[j].value == val) {
                    field.selectedIndex = j;
                    break;
                }
            }
            break;

        case "checkbox":
            field.checked = val;
            break;

        case "implicit":
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   this is the line which cause error


            eval("newChoice_" + identities[id][i][0] + "(val)");
            break;

        default:
            field.value = val;
        }
    }
}

//-->

Thanks for help.
Regards

-- 
DZIAL SYSTEMOW KOMPUTEROWYCH I SIECI TELEINFORMATYCZNYCH
Uniwersytet w Bialymstoku

mgr in¿. Grzegorz Stalenczyk
e-mail: scs at uwb.edu.pl
tel. (085) 745 70 95
             



More information about the imp mailing list