I’m trying to write a simple Touch UI app to test the storage proxy functionality. Here’s my code:
[code]
[/code]And the PHP script for the data processor (json_devices.php):
<?php
//
$srv = 'SQLSERVER01\SQLEXPRESS';
$uid = 'sa';
$pwd = 'xxxxxxxxx';
$dbf = 'xxx0010';
$par = array("uid" => $uid, "pwd" => $pwd, "database" => $dbf);
$con = sqlsrv_connect($srv, $par);
if (!$con) { print_r(sqlsrv_errors()); }
//
$sql = '';
$sql .= 'SELECT * FROM devices ORDER BY id';
//
$data = sqlsrv_query($con, $sql);
$result = array();
//
do {
while ($row = sqlsrv_fetch_array($data, SQLSRV_FETCH_ASSOC)) {
$result[] = $row;
}
} while (sqlsrv_next_result($data));
//
echo json_encode($result);
//
sqlsrv_free_stmt($data);
sqlsrv_close($con);
?>
Testing on a FAT client using Chrome the local storage it doesn’t work. In IE8 works fine! With procmon from SysInternals I am able to see that IE stores the data locally, Chrome does not.
Any clue? Chrome version is 16.0.912.77 m.