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 -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -