使用AJAX的WebBrowser Control Plus动态HTML [英] WebBrowser Control Plus Dynamic HTML Using AJAX

查看:85
本文介绍了使用AJAX的WebBrowser Control Plus动态HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网页上获取实际HTML时遇到问题。

I'm having a problem obtaining the actual HTML on a webpage.

我可以获得页面的正常部分,但是,我需要的实际部分是设置的动态转换为span标记。

I can get the normal part of the page, however, the real part I need is set dynamically into a span tag.

注意,HTML实际上是在表单上的Web浏览器控件中正确显示的,并且显示正确。

Note, the HTML is actually displayed correctly in the web browser control on the form, and displays correctly.

I尝试使用documentcomplete事件,它允许我使用使用HTTPClient的javascript获取HTML等等。主站点使用框架。

I did try using the documentcomplete event, which allowed me to get the HTML with the javascript that uses HTTPClient and so on.  The main site uses frames.

另外,奇怪的是,我确实尝试解决这个问题但是无论何时我这样做并手动输入URL,它都会让我退出。

Also, what is odd, is I did try going around this problem but anytime I do that and enter a URL in manually, it logs me out.

有谁知道如何获取从动态设置的AJAX请求中检索到的实际HTML?

Does anyone know how to get the actual HTML that is retrieved from an AJAX request that is set dynamically?

推荐答案

通常,Web浏览器控件的DocumentText会这样做,但似乎不是你的情况!你用的是什么langugae?你是什​​么意思"我需要的真实部分"?请更好地解释您的情况,以便我们能够更好地帮助您!
Usually, the DocumentText of the web browser control will do, but it seems it's not in your case! what langugae are u using? what do you mean by "the real part I need"? Please explain your situation more so we might be able to help you better!


这篇关于使用AJAX的WebBrowser Control Plus动态HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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