I want to load some data in three combos with:

connect(window, "onload", partial(loadcombo,'progs'));

function loadcombo(type) {
d = loadJSONDoc("http://192.168.9.1:8081/da/testajax.ks/combo";,
{"combocontents":type});
if (type=='progs')
{d.addCallback(FillCombo,'anagr');
};
}

function FillCombo(type,analist) {
var list = SELECT({'id':'anagr'}, map(partial(OPTION,
null),analist.anagr));
swapDOM('anagr', list);
var list = SELECT({'id':'stato'}, map(partial(OPTION,
null),analist.stati));
swapDOM('stato', list);
var lista = SELECT({'id':'resp'}, map(partial(OPTION,
null),analist.resp));
swapDOM('resp', list);
}

In Firefox everything goes as expected but in IE when the page is
loaded combos are empty and I have to refresh the page to see them
filled. Adding a window.refresh() does not seem to solve this issue
because IE load the page from cache (or at least this is what I think)
and the combos are filled with an old copy of data: I have to manually
refresh the page to see the latest data in combos.
Adding <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> in my html seems
to have no result.
Is it a typical "onload" IE  behaviour or I miss something in my code?


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

Reply via email to