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-...
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 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=&#...
Ive been experimenting with swift and wanted to try out the wkwebview.  Ive built an app and it all works correctly but the problem is that the webpage that i load into my wkwebview uses google maps and requires location services, so the javascript s...
I want to get the contents of http://www.devpowerapi.com/fingerprint from a WKWebView  evaluateJavaScript("document.documentElement.innerHTML") returns <head></head><body></body> instead of the actual JSON  Is it possi...
Trello, on the desktop website, allows you to drag elements around like this:    However, when using Safari on iOS, this doesn't work.   It either selects the element or pops up a sheet.    If I present this in a UIWebView or WKWebView, can I mak...
In WKWebView we can call ObjectiveC/Swift code using webkit message handlers webkit.messageHandlers.<handler>.pushMessage(message).  And this works for IFrames too.  Is there a way to respond to this by calling into the IFrame?  Currently the e...
I am trying to load a transit website so I can scrape the stop times for a given stop. After I load the url, the stop times are loaded in a bit later dynamically through javascript. My goal is to detect the presence of elements with a class of "s...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.