I've exhausted my local resources on this one, and am hoping the experts on
the list can help.

One of our pages is throwing a weird JS error - "The callee (server (not
server application)) is not available and disappeared;  all connections are
invalid.  The call did not execute."

Tracking down this error get's us to this line:
        oWDDX.setField(x, "ID", oCurExtra.ID);

Some background info:  oCurExtra is an instance of a JS class we created.
This error occurs in a routine to serialize the class to WDDX (for a form
post to the save page).  The error only occurs on the LAST item in an array.
Here's the loop portion of the function:

        for (var x = 0; x < oExtras.ExtraArray.length; x++) {
                
                //var oCurExtra = oExtras.ExtraArray[x];
                if (oCurExtra) {
                        //oCurExtra.Dump();
                        oWDDX.setField(x, "ID", oExtras.ExtraArray[x].ID);
                        oWDDX.setField(x, "RefID",
oExtras.ExtraArray[x].RefID);
                        oWDDX.setField(x, "Name",
oExtras.ExtraArray[x].Name);
                        oWDDX.setField(x, "Qty", oExtras.ExtraArray[x].Qty);
                        oWDDX.setField(x, "Cost",
oExtras.ExtraArray[x].Cost);
                        oWDDX.setField(x, "UnitPrice",
oExtras.ExtraArray[x].UnitPrice);
                        oWDDX.setField(x, "Notes",
oExtras.ExtraArray[x].Notes);
                        oWDDX.setField(x, "LastUpdateTime",
oExtras.ExtraArray[x].LastUpdateTime);
                        oWDDX.setField(x, "Deleted",
oExtras.ExtraArray[x].Deleted);
                        oWDDX.setField(x, "CAID",
oExtras.ExtraArray[x].CAID);
                        if (oCurExtra.PriceRequest) {
                                oWDDX.setField(x, "PriceRequest", "Y");
                        }
                        else {
                                oWDDX.setField(x, "PriceRequest", "N");
                        }
                        oWDDX.setField(x, "RetailPriceType",
oExtras.ExtraArray[x].RetailPriceType);
                }
        }

The bummer is that this works fine on our develpment server, but fails on
the production server.

Any ideas?  Thanks in advance.

Shawn Grover
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to