-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: Cannot read property 'PrintPlugin' of undefined" cordova print plugin #13
Comments
you sure run it after device ready |
var html = document.getElementById('printssss').innerHTML;
some times working fine and some times am getting error like.... "Uncaught TypeError: Cannot read property 'PrintPlugin' of undefined" |
4.0 and above versions of android devices |
Here is my code am printing div content through printer but some times working fine and some times am getting error like.... "Uncaught TypeError: Cannot read property 'PrintPlugin' of undefined"....please resolve this issue... |
sorry to be very late
}, false); |
setTimeout(function(){
var type = "text/html";
var title = "test.html";
var fileContent = "Phonegap Print Plugin";
window.plugins.PrintPlugin.print(fileContent,function(){console.log('success')},function(){console.log('fail')},"",type,title);
}, 2000);
The text was updated successfully, but these errors were encountered: