Working on some testing with phonegap on iphone; i have a plugin that returns simpl json data like this :
NSString* retStr = [[NSString alloc] 
  initWithFormat:@"%@({ code: '%@', image: '%@' });", 
  resultText.text,resultImage.image];                       
[ webView stringByEvaluatingJavaScriptFromString:retStr ];  
And my call from JS :
var mydata = PhoneGap.exec("MyModile.myFunction", 'mycallback'); 
function mycallback (data) { alert (data); }
Doesn't produce anything upon the return.
Any idea ?