Start New Discussion Reply to this Discussion Question about webview - url as string?
This is a question about Mac OSX Objective C (Cocoa)
Hello I currently have a webview inside a panel which I have set as a sheet, the website inside the web view in the panel can go to other pages of the site, unfortunately one of these pages has a button which closes the webpages window, because I am running it in a sheet and the window has been closed the sheet no longer comes to the front as it's been incorrectly closed.
I don't really want the user to go away from the page that loads at the beginning anyway, so is there away that if the webview url is not equal to "http://www.website.com" then orderout sheet?
And how would i go about doing that?
Thanks
Lee
10 Months Ago
Last Updated
nameisskrillex
Newbie Poster
1 post since Jun 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0
I'm an iOS developer, not Cocoa, but I've been able to embed Javascript in the Obj-C code to be executed in a web view. This approach might help you detect a URL or manipulate a DOM element in the embedded web view.
Perigee
Newbie Poster
24 posts since Sep 2005
Reputation Points: 24
Solved Threads: 0
Skill Endorsements: 0
© 2013 DaniWeb® LLC
Page rendered in 0.5577 seconds
using 2.68MB