GithubHelp home page GithubHelp logo

links no longer work about sdklauncher-ios HOT 2 OPEN

readium avatar readium commented on August 21, 2024
links no longer work

from sdklauncher-ios.

Comments (2)

danielweck avatar danielweck commented on August 21, 2024

Just to double-check, I tried the cloud reader and it works fine:
http://readium-cloudreader.divshot.io/?epub=epub_content%2Fepub30-test-0130-20140611.

I must admit, I never tested external hyperlinks in the native application launchers. Would that normally result in opening mobile Safari on iOS? (or does the linked webpage open within the embedded WebView?)

from sdklauncher-ios.

nodehack avatar nodehack commented on August 21, 2024

Links will open in the embedded WebView unless you tell the WebView not to load the request and open the request via: [[UIApplication sharedApplication] openURL:theRequest.URL]. That should open the link in Safari or if its a mailto link it will open the mail application.

I've run into this issue with WKWebView as well. If you comment out the following code in jQuery then external links will work again. This however has a side effect that internal links (such as those found in a ToC) will cause odd behavior around navigating prev/next pages. Something odd is afoot!

    if ( !(eventHandle = elemData.handle) ) {
        eventHandle = elemData.handle = function( e ) {
            // Discard the second event of a jQuery.event.trigger() and
            // when an event is called after a page has unloaded
            return typeof jQuery !== strundefined && (!e || jQuery.event.triggered !== e.type) ?
                jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
                undefined;
        };
        // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
        eventHandle.elem = elem;
    }

from sdklauncher-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.