检索AJAX网页内的WebView提交 [英] retrieve submit from AJAX web within WebView

查看:274
本文介绍了检索AJAX网页内的WebView提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要获取用户密码我寻找他们的:

To retrieve user passwords I search for them at:

- (无效)web视图:(的WebView *)web视图decidePolicyForNavigationAction:(NSDictionary中*)actionInformation要求:(的NSURLRequest *)请求帧:​​(WebFrame *)框架decisionListener:(ID)监听器

这被称为除其他外,当用户提交登录表单。

this gets called, among others, when the user submits a login form..

不过,我所遇到的以下网站:商店

However, I have come across following web-site: Store

下面,当用户提交的登录,没有来自WebPolicyDelegate事件引发。看来,如果不采取行动正在发生。密码被保存作品,所有其他网站我测试的方式(20 +)。

Here, when the user submits the login, no event from the WebPolicyDelegate is raised. It seems as if no action is taking place. The way the passwords are saved works for all other web sites I have tested (20+).

any1能知道这里发生了什么?我怎么能找回在这个网站上的密码内容,当用户提交表单??

Any1 knows what is happening here? How could I retrieve the password content at this site when the user submits the form??

更新

我现在得到的情况下调用感谢<一href="http://stackoverflow.com/questions/5353278/uiwebviewdelegate-not-monitoring-xmlhtt$p$pquest">UIWebViewDelegate没有监督XMLHtt prequest?的,但是,我不能够访问密码元素。我该如何找回?

I now get the event call thanks to UIWebViewDelegate not monitoring XMLHttpRequest?, however, I am not able to access the password element. How can I retrieve it?

现在的问题是呼叫 [actionInformation objectForKey:@WebActionFormKey]; web视图:decidePolicyForNavigationAction:(NSDictionary中*)actionInformation要求:框架:decisionListener:返回nil

The problem is that the call [actionInformation objectForKey:@"WebActionFormKey"]; within webView:decidePolicyForNavigationAction:(NSDictionary *)actionInformation request:frame:decisionListener: returns nil

推荐答案

你是敬畏的页面使用AJAX来登录。

The page you're revering to uses AJAX to logon.

的<一个href="https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/WebKit/Protocols/WebPolicyDelegate_Protocol/Reference/Reference.html"相对=nofollow> WebPolicyDelegate 然而只调用一个页面加载。 AJAX调用是不典型的页面加载,在地址栏中的URL仍然毕竟提交登录表单后的同一。总之,WebPolicyDelegate不会被调用,因为没有典型的导航动作发生。

The WebPolicyDelegate is however only invoked on a page load. AJAX calls are no typical page load, the URL in the address bar remains after all the same after submitting the logon form. In conclusion, the WebPolicyDelegate is not invoked because no typical navigation actions takes place.

这篇关于检索AJAX网页内的WebView提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆