Hi, > I didn't actually run the code, but I cannot figure out how it would > return [object object]. If dataField is null, wouldn't it set data = null?
It first gets set to null inside the if typeof(data) == "object" but then fall through to the return return data.toString() in the try catch block that gives you [object Object] if you don't have a toString method. Thanks, Justin