Friday, February 11, 2011

Authenticating to Domino via Ajax in PhoneGap

How can my Native Android application login to Domino via Ajax?

I need to Authenticate to Domino to determine what access level, Roles, Author/Reader Fields are used.

function doDominoLogin(username, password) {
var logReq = createXHTMLHttpRequest() ;
var poststring = "RedirectTo=" + escape('yourdb.nsf/login.html') +
"&Username=" + username + "&password=" + password;
logReq.open("POST", "http://www.yoursite.com/names.nsf?Login" , false);
logReq.send(poststring);

alert(logReq.status);

alert(logReq.responseText);


if (logReq.status == 200){ return(true); } else { return(false);};
}

function createXHTMLHttpRequest() {
try { return new ActiveXObject("Msxml2.XMLHTTP") ; } catch (e) {}
try { return new ActiveXObject("Microsoft.XMLHTTP") ; } catch (e) {}
try { return new XMLHttpRequest() ; } catch (e) {}
alert("XMLHttpRequest is not supported on this browser!");
return null;
}

Saturday, February 5, 2011

Storing Domino Data on your Phone - the HTML5 Manifest File

HTML 5 is the latest version of HTML. It has new tags and functionality. You can create a WEBSQL database on the Client Device.


You can create a Manifest File. This is simply a list of resources that you want the Phone to store locally. Think of it as Cache for pages, images, css, scripts..etc..


Create a $$HTMLFrontMatter Tag - Make it computed for display. Then in the formula point it to your manifest file ""


mywebsite.manifest is a page that has its Web Access Content Type set to "Other" then put in "text/cache-manifest"

This will send the correct header info to the browser so it will download the files and store them locally.


To update your Phone's files you need to update your manifest( make some change..like ad a space) then save it and reload your page twice.
The 1st time it will compare manifest versions, the second time it will pull down the updated content to the phone.

Android and Domino - Working together!

I have developed a method to push Notes Domino data to Android Devices using JSON and AJAX. It is very quick.

I have created a Mobile Application that publishes you Android Phones Photos back to Domino via AJAX!

Monday, January 31, 2011

Domino-Mobile

Write once - compile in the Cloud and run on any Mobile Device without Java or xCode.

Creating Mobile applications that utilize Domino as a back-end data source.


Using a combination of existing technologies (Javascript, CSS, AJAX, HTML5) I have created a Native Android Application that uses Lotus Notes Domino as its datasource.

This is huge.

I have also figured out how to create a standalone mobile application that can run on Android, iPhone, iPad, Symbian, and Blackberry using existing web skills.