Using a WKWebView in iOS 8, how can I run a JavaScript function from the native side or otherwise communicate from the native side to JavaScript? There doesn't appear to be a method akin to UIWebView's stringByEvaluatingJavaScriptFromString...
How can I reliably detect using javascript that a page is loaded inside a WKWebView? I'd like to be able to detect these scenarios:   iOS & WKWebView iOS & Safari not iOS   There is a similar question about UIWebView here. But it's qu...
I'm trying to catch every onClick event in WKWebView.  The website is working only with JavaScript so I cannot handle anything in:   func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escapi...
I am trying to pass data from my sites Javascript to my app, written in Swift.  Javascript:  var messgeToPost = {      "username": "testing123" }; window.webkit.messageHandlers.loginSuccess.postMessage(messgeToPost);   Swift:  var web...
I am trying to figure out how to implement JavaScript functions inside my iOS app using swift platform  .      I have tried out the example code specified in the link   https://tetontech.wordpress.com/2014/07/15/swift-to-javascript-and-javascript-to-...
Trying to get an html element name or value using preferred evaluate Javascript swift function using a WKWebView. I keep recieving nil.  I think maybe my function is firing before the page is loaded, thus never finding the element.  Right now just tr...
While loading HTML5 page from url I'm getting pdf somewhere in that page and I have to download that pdf or save it as base64.  This is where the pdf is in the HTML code. I cannot simply hit the 'src' URL and get the pdf.  < embed widt...
I have a very simple/easy question but have absolutely zero experience with java. I have a WKWebView and I want to get the title text of the page using the javascript document.getElementById.  The webpage I am trying to get the title from has this co...
I have a HTML file which contains local resource files such as css, js and png files inside its content. These local resource files are in zip format. My app use WKWebView to display this html file. I want to find a solution to intercept the web view...
I have a requirement of loading Javascript files through HTML file. I have structured files in order shown in below screenshot.    HTML head tag contains the Javascript files to call as below:  <head> <meta name="viewport" content=&#...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.