Boost PC performance: How more available memory can improve productivity
iPhone - web development lotus notes domino
1. 09.03.2010
IPhone Web-Applikationen
mit Domino
Bernhard Kolb
http://ebetest.ebe-edv.com/iphone
EBE GmbH
Bernhard Kolb & Team
www.ebe-edv.com
Domino Consulting & Developent
.net Development
Windows Mobile
iPhone
Domino Web Apps fürs iPhone
Development environment
Web Layout für Mobile Safari
iWebKit Framework
iPhone services (email, SMS, Phonecall)
Drawing with Javascript
Geolocation – wo bin ich?
Google Maps
Interaktion mit Domino
Agent starten per AJAX
Webservice konsumieren
1
2. 09.03.2010
Prerequisites for Development
Safari 4
iPhone Emulator (MobiOne)
Domino Designer
iWebkit Framework (www.iwebkit.net)
iPhone
Web App vs. iPhone Web App
unübersichtlich klar, einfach und begreifbar
schlecht bedienbar Look and Feel Like iPhone Native Apps
iWebKit Framework
CSS
Javascript Library
Nette Bilder (32x32)
www.iWebkit.net
2
7. 09.03.2010
Geo Location ermitteln
function gps_click() {
navigator.geolocation.getCurrentPosition(success, fail);
}
function success(position) // 'position' can be named anything
{
var x1= position.coords.latitude;
var y1= position.coords.longitude;
alert("latitude: " + x1 + " " + "longitude: " + y1);
window.open("http://maps.google.com/maps?q=" + x1 + "," + y1);
}
function fail() {
alert('failed');
}
Graphics & Visual Effects
function drawRectangle() { function drawCircle() {
var canvas = var canvas = document.getElementById('Circle_Canvas');
document.getElementById('map_canvas'); var context = canvas.getContext('2d');
var context = canvas.getContext('2d'); context.beginPath();
context.fillStyle = "rgba(255,0,0,0.5)";
context.arc(125,65,30,0, 360, false);
context.strokeRect(10,10,150,140);
context.fillRect(15,15,140,130); context.fill();
} // Create empty circle
<canvas id="map_canvas" width="300" context.beginPath();
height="300" style="position:absolute; context.arc(125,65,35,0, 360, false);
left:10px; top:60px; z-index:1"/>
context.stroke();
context.endPath();
}
<canvas id="Circle_Canvas" width="300" height="300"
style="position:absolute; left:10px; top:50px; z-index:1"/>
Web Service mit JavaScript
<script type="text/javascript" src="jquery-1.4.min.js"></script>
<script type="text/javascript" src="jqSOAPClient.beta.js"></script>
var action = "testws?OpenWebService";
var body = new SOAPObject("X").val($("#X").val());
body.ns = {name: "urn",uri: "urn:DefaultNamespace"};
var sr = new SOAPRequest("MAL2", body);
SOAPClient.Proxy = action;
SOAPClient.SOAPServer = 'testws?OpenWebService';
SOAPClient.SendRequest(sr, function(resp)
{ $("#Mal2Result").text($(resp).text());});
7
8. 09.03.2010
Schnellzugriff auf Webseite
Domino specials…
DB Properties
Launch – Page – start
Page Properties
HTML, pass-through-HTML
Agent Properties
target: none
WebService
Port Type Class
Danke für Ihre Aufmerksamkeit
Web App
http://ebetest.ebe-edv.com/iphone
Source Code
http://ebetest.ebe-edv.com/iphone/iPhoneDB.zip
Book
Professional iPhone and iPod touch Programming:
Building Applications for Mobile Safari
8