I am working on project and I will implement by HTML5, javascript and I will use phonegap to give me applications in multi platforms and I have database in my server.
I know two ways to connect to my database and phoneGap accept that way :
1:Jquery Ajax requests. like in the tutorial http://www.indiageeks.in/phonegap-jquery-ajax-example-jsonjavascript-object-notation-response/
2:java script like in the tutorial http://simonmacdonald.blogspot.com/2011/12/on-third-day-of-phonegapping-getting.html
but I am wondering ,,, Can I use web services on this thing ? for example : all services will be in my server and also the database and I will connect to the web services through (html or java script or Jquery ) page and the data return in XML file and display it in the page.
Does phoneGap accept that way ? if yes i want any good tutorials that will help me