Intercepting JavaScript calls in WebViews
Intercepting JavaScript calls in WebViews
- Subject: Intercepting JavaScript calls in WebViews
- From: Patrick Machielse <email@hidden>
- Date: Sun, 14 Dec 2003 21:55:15 +0100
Hi,
I'm working on a project using a WebView. The html that is displayed
contains JavaSctipt links like:
<a href="javascript:function(parameter);">click me</a>
When the user clicks on a link, I must intercept the JavaScript function
call (which is implemented as an empty function in the html) and do
something intelligent with the function parameter.
Is this possible in WebKit? I tried overriding WebView's
stringByEvaluatingJavaScriptFromString:
method, but that doesn't seem to get called by WebView itself...
- Is what I wan't possible at all using webkit?
- Does anyone know of a method to find out which element of a web page
was clicked?
- Can I get access to the elements displayed in a WebView / WebFrame?
Groeten,
Patrick
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.