How can I utilize the new MobileSafari device motion APIs to capture a "shake" event?...
Let's say I'm developing an iPhone app that is a catalogue of cars. The user will choose a car from a list, and I will present a detail view for the car, which will describe things like top speed. The detail view will essentially be a UIWebVi...
I'm trying to get the url of an image tapped in a UIWebView using UILongPressGestureRecognizer.  I sort of have this working, but i'm not sure if the coordinates are off, or it's just not finding an img tag in the DOM as it doesn't al...
Usually, when I want to load an HTML string into a webview using javascript, I use something like this...  NSString *htmlString = @"HTML String"; [webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.getEle...
Am trying to play YouTube and other videos by embedding it in the HTML source for displaying them in iOS.  Both <embed> and <object> technique works, but none of them are capable of calling callback functions when the video fails to play...
In an application I'm working on, I am downloading a webpage of mine from the server and then parsing the code for information. I'm using an ASIHTTPRequest to get the code from the server. The problem is that the webpage uses Javascript to se...
How can I figure out which word is at the point where the user tapped on a UIWebView?  I am able to detect the CGPoint for the tap (subclassing UIWindow like this), and I can actually get the DOM element on that point using javascript.   But I know v...
I need to retrieve an image (the src of an img tag) contained in a web page (html file). The web page may contain more than one images, I just need to retrieve any of them (lets say the first one). Till now I've gone so far:   UIWebView * tmpWV;...
I'm using the webView:shouldStartLoadWithRequest:navigationType method to call my Objective-C code from JavaScript which works OK. The problem is, this method only gets called when a Web view reloads. I want to be able to send messages "whene...
I am using this javascript code to get a downloadable video URL from the mobile youtube website.  [webView stringByEvaluatingJavaScriptFromString:@"function getURL() {var player = document.getElementById('player'); var video = player.getE...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.