imgcache.js icon indicating copy to clipboard operation
imgcache.js copied to clipboard

dont load.

Open philipehsing opened this issue 10 years ago • 6 comments

Hey

I get this in my console [console.log] WARN: ImgCache not loaded yet! - Have you called ImgCache.init() first? i used your code in your readme in my ondeviceready.., it works fine in chrome but not in ios/android

ImgCache.init(function(){ alert('ImgCache init: success!');

// from within this function you're now able to call other ImgCache methods
// or you can wait for the ImgCacheReady event

}, function(){ alert('ImgCache init: error! Check the log for errors'); });

Cheers!

philipehsing avatar Feb 04 '15 14:02 philipehsing

Perhaps ImgCache.init failed. Did you see the alert? Or perhaps it failed silently. Turn ImgCache.options.debug on first, then try to add a console.log output just before you call the init method. If you get that warning log entry before your new log, that means somewhere your code calls imgcache methods before the init statement.

chrisben avatar Feb 05 '15 15:02 chrisben

@philipehsing Try the new Promises wrapper (QImgCache) within the latest v1.0rc1, this should be easier for you because it makes sure init is called first (and you don't need to call it). Also please check out the new Troubleshooting section in the Readme file.

chrisben avatar Feb 08 '15 16:02 chrisben

Yes i have turned on the debug option. All i get is [console.log] WARN: ImgCache not loaded yet! - Have you called ImgCache.init() first?

What should i do?:( it works on laptopts etc but no phone, where can i find the nre QImgCache?

philipehsing avatar Feb 09 '15 10:02 philipehsing

qimgcache.js can be found in the js/ folder next to imgcache.js within the master branch.

chrisben avatar Feb 17 '15 20:02 chrisben

How do i use qimgcahce?

philipehsing avatar Feb 23 '15 08:02 philipehsing

Read the documentation, if you search for qimgcache, you'll find a link to an example.

chrisben avatar Feb 23 '15 21:02 chrisben