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

Jan Schneider jan at horde.org
Fri Jan 13 00:58:19 PST 2006


Zitat von Grzegorz Staleñczyk <scs at uwb.edu.pl>:

>
>
> 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

And this line is absolutely perfect.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


More information about the imp mailing list