On 4/6/07, Chez17 <[EMAIL PROTECTED]> wrote:
>
> For some reason this code is working in FF but not IE 7. I was
> wondering if somebody could help me out. The thing is, in IE the
> loadBad function works, and if I completely remove the for loop in the
> loadGood function, a simple alert will work, but when I try to use a
> for loop, this will not work. Is my syntax in the for loop wrong? Am I
> grabbing the data wrong? Any ideas why it would work in FF but not IE
> 7?
>
> function updateContract()
> {
>         removeAllOptions(document.appointment_info.contract_id);
>
>         var loadGood = function(data)
>         {
>                 var x = "";
>                 for(item in data.contracts)
>                 {
>                         alert(data.contracts[item].contract_id  + " : " +
> data.contracts[item].contract_name);
>                 }
>
>
>         };
>
>         var loadBad = function(err)
>         {
>                 alert("Contract data could not load: " + err);
>         };
>
>         var d = loadJSONDoc("get_contracts.php", { cid :
> document.appointment_info.customer_id.value } );
>         d.addCallbacks(loadGood, loadBad);
> }

What version of MochiKit are you using?

-bob

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