I'm trying to write my first Couchapp with jQuery mobile. In every desktop browser I tested (IE/FF/Chrome/Safari), the app functions exactly as intended. But when I try the same page in any mobile browser (Mobile Safari, Atomic, Android, Opera), the listview fails to populate.
At first I thought this might have to do with the mobile browsers handling my
$("#terms").listview( "refresh" );
call differently, but changing that didn't help. I have verified that the view I am using works correctly: http://grc.iriscouch.com/dictionary/_design/dictionary/_view/byacronym.
Could someone take a look at my code and point me in the right direction?
EDIT: According to Mobile Safari's console, the script throws an error on line 34:
$db = $.couch.db("dictionary");
JavaScript Error on Line 34
TypeError: Result of expression '$.couch' [undefined] is not an object.
EDIT2: Fixed the problem by moving the jquery.couch.js
from /_utils/script
into vendor/couchapp
.