Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Intercepting ajax XHR in code?



Hi,

I am writing an application where I would like to intercept XHR ajax requests from a page loaded into my WebView in code.

I tried to implement the various resource delegate methods of the WebView, but I can't access the data from the XHR request.

I tried both

– webView:resource:didFinishLoadingFromDataSource:
– webView:resource:didReceiveResponse:fromDataSource:

methods and then tried to get the data of the requested resource with

[dataSource subresourceForURL:xhrURL]

but I never get back any resource from the data source (result is nil).

Any ideas how to access the response data?

Thanks

Dominik _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.