-
3 Sep 2012 1:50 AM #11
not working for me on device
not working for me on device
code is not working for me on device as well as desktop. The demo is not working on device as well checked on Galaxy S.
Here's my code in launch function
any suggestionsCode:var file = 'testFile57.pdf'; var viewer = Ext.create('Ext.ux.panel.PDF', { fullscreen: true, layout : 'fit' }); Ext.Viewport.add(viewer); // Read the local file into a Uint8Array. var fileReader = new FileReader(); fileReader.onload = function(evt) { var base64String = evt.target.result; var byteArray = Base64Binary.decodeArrayBuffer(base64String); viewer.setData(byteArray); }; fileReader.readAsDataURL(file);
thanks
-
3 Sep 2012 11:13 PM #12
What browser
What browser
What desktop browser are you using? Chrome, Safari? We need a bit more info.....what error messages are you getting in the console (right click, inspect elements view console)?
Code works here on safari and Chrome with the supplied link in the demo...
-
3 Sep 2012 11:27 PM #13
yes the demo link works on desktop, tried on chrome, but when I integrated it with my code its displaying loader all the time and pdf doesn't load. Have you tried the example on any mobile device? I have tried it on Galaxy S didn't worked for me.
thanks for your response
~M
-
4 Sep 2012 1:22 AM #14
Works on iOS
Works on iOS
Yes it works on iOS.....I would suggest trying this:
http://www.sencha.com/blog/remote-javascript-debugging-on-android/
:-)


Reply With Quote