2
Getting Console error and Unable to view Document on mobile
Problem reported by Sahan Pathirana - 1/10/2024 at 11:18 PM
Resolved

We are encountering an issue with our .NET web forms project using GleamTech.DocumentUltimate version 6.9.6. While we experience no errors on desktop, we face console errors on mobile devices. Document viewing is sometimes hindered, and the console error seems to originate from the JavaScript file, which we are struggling to resolve. I've attached images for reference.

For troubleshooting, we've checked the browser's developer tools, emulated mobile views, and attempted JavaScript debugging. We've also verified browser compatibility and looked for updates in the GleamTech.DocumentUltimate library. Our project has a responsive design, but the issue persists on mobile.

If anyone has insights into resolving JavaScript errors on mobile devices, especially related to GleamTech.DocumentUltimate, we would greatly appreciate your assistance.



5 Replies

Reply to Thread
0
Cem Alacayir Replied
Employee Post
Note that emulated mobile views in browser's developer tools, is not same as running on a mobile browser, so errors may be expected. Do you actually get any error or problem on a real mobile browser?
1
Sahan Pathirana Replied
Yes. This issue can recreate in Iphone Browsers as well.
1
Patrick Riehmers Replied
We have the simular problem on Android with Chrome. With Chrome Remote Debugging over the Android device, the errormessage is the same as Sahan shows, "Undefined Object (reading 'top')". That error leads in 2 different behaviour. Empty Viewer, like Sahan described, additionally we have sometime a bug, that the user can't scroll documents who have multiple pages. No controlls were shown and you can't navigate.

Let me know, what more information i could provide you.
0
darmadi Replied
Hi all, any update for this case ? I experience the same error on my mobile app too
0
Cem Alacayir Replied
Employee Post Marked As Resolution
FYI,
This is now fixed:

Version 6.9.7 - April 18, 2024

  • Fixed: The following error in console on mobile which prevented loading of the document viewer:
    Uncaught TypeError: Cannot read properties of undefined (reading 'top')
    The error was observed with Chrome on Android and emulated mobile views in browser's developer tools.

  • Improved: Mobile device detection to better detect new browsers.

  • Improved: Updated jquery to latest 3.7.1.
    Disabled unnecessary console message "JQMIGRATE: Migrate is installed, version 3.4.1"

Reply to Thread