We are planning to build a web application for a client which is initially going to be accessed via Desktop Browsers. But later on we need to have the same application available on Mobile Devices (mobiles/tablets) on IPhone and Android.
The web application is a typical inventory management clubbed with billing and is data intensive. About 30-50% of the web application will be accessed via the mobile devices by the top level management.
We plan to use ASP.NET Web Forms, jQuery, AJAX for the Desktop version for application and build a hybrid app using PhoneGap for the mobile devices (the app may use the camera in certain situations).
Now we are in the planning phase and would like to architect the web application is such a way that we can REUSE most of the code OR at least REDUCE the effort as much as possible.
We are all well versed with ASP.NET Web Forms, jQuery & AJAX. The desktop application will be designed like a SINGLE PAGE application. We will use jQuery & AJAX to pull content from the server and embed in the existing page so there is no page refresh.
We are new to hybrid mobile development. So a couple of questions on that:
- Going by what I have read so far on this site and other sites, we will need one main index page which will call the other pages via AJAX… is this correct?
- Now PhoneGap basically packages HTML, JavaScript & CSS file, so how does PhoneGap work with ASP.NET Web Forms, as the HTML, JavaScript & CSS is actually coming from the server.
- I have read somewhere that on IPhones you are only allowed to communicate with the server for data. If you are trying to pull/generate layout on the server (HTML as in the case with ASP.NET) the app will be rejected.
- Our main intention is to reuse & reduce effort. So is ASP.NET Web Forms, jQuery, AJAX advisable as a technology to build for both Desktop & Hybrid Mobile apps or do you suggest some alternative technology.
CAN THE EXPERTS IN THIS FIELD PLEASE HELP ME OUT HERE.