• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Intercepting JavaScript calls in WebViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Intercepting JavaScript calls in WebViews
      • From: Jonathan Wight <email@hidden>
  • Prev by Date: Wrong result with createDirectoryAtPath:attributes:
  • Next by Date: Re: Wrong result with createDirectoryAtPath:attributes:
  • Previous by thread: Re: Wrong result with createDirectoryAtPath:attributes:
  • Next by thread: Re: Intercepting JavaScript calls in WebViews
  • Index(es):
    • Date
    • Thread