|
|
| Author |
Message |
| Phil. |
This post is not being displayed .
|
 Phil. World Chat Champion

Joined: 02 Feb 2002 Karma :     
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Kickstart |
This post is not being displayed .
|
 Kickstart The Oracle

Joined: 04 Feb 2002 Karma :     
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Phil. |
This post is not being displayed .
|
 Phil. World Chat Champion

Joined: 02 Feb 2002 Karma :     
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Kickstart |
This post is not being displayed .
|
 Kickstart The Oracle

Joined: 04 Feb 2002 Karma :     
|
 Posted: 20:40 - 20 Feb 2012 Post subject: |
 |
|
Hi
The barcode scanning is the difficult bit with the mobile app (done this at work a bit), although just scanning to the current input field should be easy. The web communication is the easy bit.
Cookies do sound a bit clunky but my concern would be losing data due to them expiring before being sent to the server. Should be easy enough, except for the really annoying habit the old Windows pdas have of wiping the memory when the battery goes flat.
All the best
Keith ____________________ Traxpics, track day and racing photographs - Bimota Forum - Bike performance / thrust graphs for choosing gearing |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Jayy |
This post is not being displayed .
|
 Jayy Mr. Ponzi
Joined: 08 Jun 2009 Karma :  
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Kickstart |
This post is not being displayed .
|
 Kickstart The Oracle

Joined: 04 Feb 2002 Karma :     
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Phil. |
This post is not being displayed .
|
 Phil. World Chat Champion

Joined: 02 Feb 2002 Karma :     
|
 Posted: 10:35 - 21 Feb 2012 Post subject: |
 |
|
I did install opera mobile 10 on the device but it has some interesting behaviour with text input which makes it harder to work with than IE6 if you can believe that.
I'm just thankful of JavaScript libraries to make ajax possible.
Never the less, today is going to suck.
Edit, today indeed did suck;
| Code: |
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript">
function ajax_call(name,parameters){
var myAjaxx = new Ajax.Updater(name,
'http://www.xxxxxxxx.com', {
method: 'post',
parameters: parameters,
onFailure: function (oXHR) {
$(name).update('Error');
},
onLoading: function (oXHR) {
$(name).update('');
},
onSuccess: function(oXHR) {
$(name).update(oXHR.responseText);
success();
}
});
}
var oTextbox, timer;
window.onload = function()
{
oTextbox = document.getElementById("order_id");
oTextbox.onkeyup = function()
{
if(timer) window.clearTimeout(timer);
timer = window.setTimeout('process_input()', 1000);
}
}
function success(){
$('stored_ids').value = '';
}
function process_input(){
var timestamp = Number(new Date());
var oid = $F('order_id') + '_' + timestamp + ':';
var currently_stored_ids = $F('stored_ids');
$('stored_ids').value = currently_stored_ids+oid;
ajax_call('ajax_div','oids=' + $F('stored_ids'));
$('order_id').value = '';
}
</script>
<title>IE Sucks</title>
</head>
<body>
<form>
<input type="text" name="order_id" id="order_id" value="" autocomplete="off" />
<br />
<input type="text" name="stored_ids" id="stored_ids" value="" />
</form>
<div id="ajax_div">
</div>
</body>
</html>
|
One thing i learned, Firefox doesn't like ajax calls to a different hostname. So absolute uris are impossible. However I guess IE uses Active x so it doesn't mind, which is a bonus and the ajax functions in prototype keep on working. |
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Jayy |
This post is not being displayed .
|
 Jayy Mr. Ponzi
Joined: 08 Jun 2009 Karma :  
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
| Kickstart |
This post is not being displayed .
|
 Kickstart The Oracle

Joined: 04 Feb 2002 Karma :     
|
|
| Back to top |
|
You must be logged in to rate posts |
|
 |
Old Thread Alert!
The last post was made 14 years, 52 days ago. Instead of replying here, would creating a new thread be more useful? |
 |
|
|