Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,151,378 members, 7,812,098 topics. Date: Monday, 29 April 2024 at 08:10 AM

Help Needed: Mobile Application Development. - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Help Needed: Mobile Application Development. (1367 Views)

Needed Mobile App Developer Urgently / How To Build And Design A Mobile Application Like 2go, Whatsapp, Mixit / Web Application Development Contest: Jajad Wins (2) (3) (4)

(1) (Reply) (Go Down)

Help Needed: Mobile Application Development. by lctewand(f): 2:44am On Mar 13, 2012
hi nairalanders
im building a cross platform mobile app using html, css and javascript. (and a lil php)
ive created the client-side of the program using the languages listed above but now im stuck at the server-side as the resources online are quite confusing.i want to make it a native app also using phonegap and appmobi also. (this way it could work both offline and online)

now any body who has done something close to this or has an idea shld pls contribute or just post tips/ advice about what they know cos im depending entirely on online tutorials.
thanks...

p.s i also want to include pdf files in the app and a way they can be downloaded and i have no idea how to do this.
Re: Help Needed: Mobile Application Development. by tubiz(m): 2:05pm On Mar 15, 2012
To solve the problem of server side communication you have to make use of AJAX.
This is because there is no server present on a smartphone like iphone, blackberry and android.
Let me give u a basic example.
Let say in you app you want to log a user his details in the database in your button
<button onClick="doLogin()">LOGIN</button>

The in your javascript file you will have

function doLogin(){
// Code to communicate with your database using AJAX.
}
Re: Help Needed: Mobile Application Development. by mrfoh: 9:40am On Mar 18, 2012
U could create an api in php nd communicate with it using ajax. Check out phonegap.com
Re: Help Needed: Mobile Application Development. by doncigalo: 2:54pm On Mar 19, 2012
Since ur developing a cross platform mobile app, I would seriously suggest u use a template just to ensure that your web app is compatible on a broad range of mobile devices & browsers, a template that im particuarly fond of is HTML5 BOILER TEMPLATE its in its 3rd version so its very robust you can get it here http://html5boilerplate.com/.

Secondly switch to HTML5, it quite simple really, all you need do is put this declaration at the top of ur web page: <!DOCTYPE html> and thats it ur using HTML5 ! U can now take advantage of its HTML5 offline ability by using cache manifests, what it does is to load all HTML, CSS, and Javascript files (that you will specify in a manifest file) unto the phone or desktop and then when there is no internet connection or ur in offline mode the webb app will still work. Scripts or functions that require a connection to a web server will still not work in offline mode. U can actually use this to increase the performance of online website as well.

Another cool feature you can take advantage of is called local storage which basically is a NoSQL type database called IndexedDB , this database is stored in the browser (not in a web server) and enables you to build dynamic offline apps in HTML5. The default allocation size is 5MB , however if you package it as a Chrome App you will be granted unlimited storage as long as you follow certain guidelines designed to make sure u dont abuse this feature.


Other cool features of HTML5 include support for multi-touch and geo-location as well. HTML5 can also communicate with functions in Native apps, so you can call the accelerometer function from HTML5 using a bit of javascript. Concerning how to include pdf in your web app, simply create a new folder, u can name it pdf or still use d rootfolder in ur www directory folder, upload the pdf into it and reference it accordingly using <a href="pdf/test.pdf">. Most webkit mobile browsers will automatically open the pdf file or might prompt you to save.

So depending on the features of ur mobile web app u can actually use HTML5, CSS3 and Javascript and a tiny lil bit of PHP

(1) (Reply)

Joseph Snowden:de One Guy Who Hacked Into U.S.A Secret Info, Publ It And Escaped / . / New Web Development Tutorials Blog

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 16
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.