The following changes were made to make dbquery work on Mobile 5.

Added
  function getElementById(element_name) and
  function isDefined(type)
from sample.js

replaced all doument.getElementById with getElementById
replaced removeChild(<object>);
with      <object>.innerHTML='';

replaced document.createElement and appendChild  with innerHTML code

change in init()
  //var statusBar = getElementById('status-bar'); //REMOVED
  //var as = statusBar.getElementsByTagName('a'); //REMOVED
  //as[0].firstChild.data = databaseName || 'None'; //REMOVED
  var statusBar = getElementById('dbname'); //NEW
  statusBar.innerHTML= databaseName || 'None'; //NEW

change in <body>  Added id="dbname":
<div id=status-bar
     onclick="showLoginForm(); return false">DB Name: <a id="dbname"
href=#>&nbsp;</a>
</div>


Br

Olav B. Lygre
On Jan 16, 8:01 pm, Oblygre <[email protected]> wrote:
> Yes, gears is working correct, I'm developing and testing a gears app.
> on it, and everything else is working ok.
>
> Explorer chrases with a error.
> Link to error:http://yotta.no/ocr.png
>
> Olav
>
> On Jan 16, 1:07 am, Austin <[email protected]> wrote:
>
> > Hi,
> > Was Gears loaded correctly? Did you get any error and would you mind telling
> > us what they are?
>
> > Austin
>
> > On Thu, Jan 15, 2009 at 2:17 AM, Oblygre <[email protected]> wrote:
>
> > > I can't get the dbquery (from the samples) to work on Windows Mobile
> > > 5.1.
> > > Does anyone have a link to a working version or another working query
> > > tool?

Reply via email to