cordova - calling a method in js file which is defined in other js files jquery -


i have implemented method in file1.js file

function setlist(){  db.transaction(querydb, errorcb); } 

and trying call method in file2.js

$(function() {     setlist();     }); 

but method not getting called , getting error 05-19 14:05:37.545: e/web console(9341): referenceerror: can't find variable: setlist @ file

what mistake doing?

thanks:)

seems nothing wrong.

make sure file1.js imported before file2.js


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -