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