IE9弄乱了我的应用程序 [英] IE9 messed up my application

查看:44
本文介绍了IE9弄乱了我的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我用C#编写的网页抓取应用程序使用  WebBrowser


其中一个功能就是让它用户编写将在网页中注入和调用的javascript函数。这是一个用户制作的函数,它接收一个C#对象作为参数,除其他外,它包含一个名为  UserData 的属性,
用户可以使用存储任何他想要的内容,即使在浏览器导航到另一个页面后它也会保留在那里。它还包含一个  浏览器 对象,我将在这里作为示例使用。


如果我注入并调用了我安装IE8时的以下功能:

  

 

 功能 ToBeInjected(全局)
{
    功能数据()
    {
        .csObject = Global.Browser;
        .jsObject = " hi" ;
    }

    Global.UserData = new Data();
}

解决方案

我能说的最好,你的问题很少见一般来说,使用C#语言或C#。 MSDN论坛不涉及Java。  Web应用程序和UI相关问题在MSDN论坛的其他论坛中处理。 似乎
主要与Java相关,这将是偏离主题的。


Rudy   = 8 ^ d


I have web scraping appliaction written in C# that uses a WebBrowser.

One of it's features is that it let the user write a javascript function that will be injected and invoked in web pages. This is a user made function that receives as a parameter a C# object that, among other things, contains a property called UserData, which the user can use to store whatever he wants and it will stay there even after the browser navigates to another page. It also contains a Browser object that I'll just use here as an example.

If I injected and called the following function when I had IE8 installed:

function ToBeInjected(Global)
{
    function Data()
    {
        this.csObject = Global.Browser;
        this.jsObject = "hi";
    }

    Global.UserData = new Data();
}

解决方案

As best that I can tell, your immediate issue has very little to do with the C# Language or C# in general. Java is not covered in the MSDN forums.  Web applications and UI related issues are handled in other forums in the MSDN Forums.  It seems to be mostly Java related, which would be off-topic here.

Rudy   =8^D


这篇关于IE9弄乱了我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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