Hey All,
I have a WebView that has editing mode turned on and I export and
insert html using setInnerHTML etc.
To prevent links from sending the webview to the links address I
implemented the decidePolicyForNavigation..... delegate method. The
code in this method opens the linked url in the default web browser
which works great.
But if I insert an iFrame via [docElement setInnerHTML:[htmlView
string]]; it will automatically open the map address in the default
browser and wont display the map properly in my WebView. It shouldn't
open this iFrame in the browser because it's not a link and it was not
clicked.
Even if I remove all code from within the delegate method, the iFrame
will not display properly within the webview. Take the method out
altogether and it works as it should.
Is there a way to separate a clicked link from inserted HTML?
Cheers
Alex Mills
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]