Phonegap 2.1 Whitelist rejection with Ajax

For those who are using phonegap 2.1 and want to do web app or want to request external data from your server or others,
you get use jquery Ajax.

$.ajax({
url: 'http://google.com',
   dataType: "text",        // <=== new bit
   success: function(data) {
      alert(data);
                     
   }
});

you are using this and get a error of telling you that you have whitelist rejection, here is the solution
open you Xcode phonegap project Navigate to Resources folder, click on Cordova.plist
at the last row, rightclick and chose to "add a new row",
enter the name "ExternalHosts" change Type to arrow,
expand this and add in the link url that you want.
for more infos please read
http://docs.phonegap.com/en/2.0.0/guide_whitelist_index.md.html#Domain%20Whitelist%20Guide

Xcode 4.4 first start with Phonegap/Corvoda error

When i first run xcode with Corvoda 2.0  from the phonegap official guide Here i get 2 errors as descried below

‘Cordova/CDVViewController.h’ file not found in MainViewController.h
‘Cordova/CDVViewController.h’ file not found in AppDelegate.h

the only solution that i found is go to preference “Xcode Preferences -> Locations -> Derived Data -> Advanced…” to “Unique”