I am trying to adapt your code to my needs but what I would like to
see in Mochikit documentation is something like "this function is not
working or it is unsure under IE 6". This case makes me feel more
insecure about Mochikit in general because if my plain opt_display
function does not seem to work in IE what about all the other
functions Mochikit offers? Maybe I was too much confident in Mochikit
capability to overcome browser's quirks..
On 26 Feb, 19:56, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> carlo schrieb:
>
>
>
> > var opt_display=function(row) {
> > alert(row);
> > return OPTION({"value":row},row);}
>
> > function FillCombo(analist) {
> > var lista =
> > SELECT({'id':'anagr','name':'anagr'},map(opt_display,analist.anagr));
> > swapDOM('anagr', lista);
> > var lista =
> > SELECT({'id':'stato','name':'stato'},map(opt_display,analist.stati));
> > swapDOM('stato', lista);
> > var lista =
> > SELECT({'id':'resp','name':'resp'},map(opt_display,analist.resp));
> > swapDOM('resp', lista);
> > }
>
> > function loadcombo(tipo) {
> > d = loadJSONDoc("http://192.168.9.1:8081/da/testajax.ks/combo",
> > {"combocontents":tipo,"nocache": new Date().getTime()});
> > d.addCallback(FillCombo);
> > }
>
> > on FF the three SELECT are ok and filled.
> > In IE combos are empty and alert(row) in opt_display never shows. Is
> > there any problem with map (or SELECT) and IE?
>
> As I said in my answer to your previous post : yes, the IE is somewhat
> picky when it comes to adding options to selects.
>
> Try and use the code I provided - it is somewhat messy as it comes out
> of production and thus has some other things to accomplish, but it
> should get you started.
>
> Diez
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" 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/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---