由买买提看人间百态

topics

全部话题 - 话题: webbrowser
1 (共1页)
o***g
发帖数: 2784
1
来自主题: DotNet版 - WebBrowser Control问题
http://www.codeproject.com/csharp/webbrowser.asp?target=
webbrowser|control#xx509110xx
运行这个程序
输入http://www.icablenet.com.br/~hartmann/example1.html
能看到clock么?
如果不能,why?
o***g
发帖数: 2784
2
来自主题: DotNet版 - WebBrowser Control问题
这个跟C#没有关系
是用了windows的WebBrowser Control
同样在eclipse里面也用了这个Control
在QQ带的浏览器里面也用到了这个Control
我用他们看这个网页都看不到applet
可是这个control是和IE用的同样的东西,dll相同
是classpath不对么?还是ms就把applet tag支持给拿掉了?
还是什么原因?
s*i
发帖数: 5025
3
来自主题: DotNet版 - 自动化的问题 (WebBrowser)
在.NET2.0下,VS2005 (or Beta)用WebBrowser control.
要做如下事情:
1。访问www.insidercow.com
2。在网页的textbox里填上 IBM
3。“点击”search,进入IBM的insider trading 网页(最终目的)
怎么做2和3呢? 当然用IE control是可以的。
x*g
发帖数: 689
4
来自主题: DotNet版 - webbrowser control question
在一个.net 2.0的winform程序里面,
我用webbrowser control去连一个网页,然后
用DocumentText propery得到网页内容,可是所有的
中文内容都变成乱麻了(问号之类的)。请问
如何解决? .net应该是支持unicode的呀?
x*g
发帖数: 689
5
来自主题: DotNet版 - webbrowser control question
thanks.Your reference link is using the webrequest and
webresponse class.
My program is using the webbrowser control. I googled for
sometime but still can't find how to retrieve unicode(Chinese)
correctly...
l*s
发帖数: 783
6
来自主题: DotNet版 - [合集] webbrowser control question
☆─────────────────────────────────────☆
xig (xig) 于 (Mon Jan 1 15:44:16 2007) 提到:
在一个.net 2.0的winform程序里面,
我用webbrowser control去连一个网页,然后
用DocumentText propery得到网页内容,可是所有的
中文内容都变成乱麻了(问号之类的)。请问
如何解决? .net应该是支持unicode的呀?
☆─────────────────────────────────────☆
cogt (苦荆茶) 于 (Tue Jan 2 21:00:12 2007) 提到:
能post你的code? 你确信encoding设置对了?

☆─────────────────────────────────────☆
xig (xig) 于 (Wed Jan 3 00:46:56 2007) 提到:
我没有设置encoding,
string txt = webbrowser1.DocumentText;
如何设置?
☆───────
c**t
发帖数: 2744
7
来自主题: DotNet版 - 问个webbrowser控件的问题
在wpf中调用winform的webbrowser控件。登陆后,新窗口(popup)自动在IE中打开,而
且要求用户重新登陆,这个好理解,毕竟新窗口是在独立的process中;那么ajax call
呢?也是在独立的process中完成的吗?我总是遇到authentication的错误。哪位做过
给确认一下?
m*****m
发帖数: 242
8
来自主题: Programming版 - 请教OLE control 的问题
新手请教一个使用ole control 的问题。 我在一个dialogue里用了两个 microsoft 的
webBrowser control。
但是在关闭dialog时, 不定期的出现 Access violation 问题 在 msxml3.dll 里。
我装聊个 Microsoft 的 application Verifier,这时每次关闭dialog时,都会在
destroy 第二个 controlsite 时,
~COleControlSite() 中crash 在 m——pOject——》SetClientSite(NULL),
在Application Verifier 的
log 里,看到 TLS error, Invalid TLS index used in stack trace。 Need to
used the
lower part of the index。
有没有人碰到过类似的情况啊? 请问哪有关于使用Microsoft Webbrowser control ,
介绍 OLE control 机制的文章或书啊?
关于Microsoft的dlls,
h*****e
发帖数: 1153
9
来自主题: Programming版 - 请教自动读取网页数据的Script

不会被干扰,其实如果你的网页不是动态javascript,也可以用c# winform自带的
webbrowser,很容易实现。估计也就十几行代码就行了。先用浏览器浏览网页源代码,
获取那几个text box的id,然后c# webbrowser的webBrowser1.Document.
GetElementById("xxx"),接着
SetAttribute("value", xxx),InvokeMember("click");
GetAttribute("value")就能实现了。
E*********9
发帖数: 244
10
来自主题: Military版 - Google为什么死不掉
Are you kidding? You mean there's only one webbrowser, one search engine,
one map, one webmail, one cloud out there? The only thing google provide
that's difficult to replace is youtube.
m******3
发帖数: 263
11
来自主题: ebiz版 - hello
I am posting thru the wifi of a garmin gps. No chinese input, webbrowsing is
very slow, email is
working, the camera is defective on arrival . Garmin really disappointed me,
going to return it
soon.
y********n
发帖数: 1669
12
来自主题: ebiz版 - Amazon如何识别相同seller
IP address
webbrowse history
s*******n
发帖数: 4605
13
来自主题: ebiz版 - 果粉购买ipad一周后就退货
One Week After New IPad '3' Release Date, Unsatisfied Buyers Sending Tablets
Back To Apple
http://www.ibtimes.com/articles/317654/20120321/ipad-3-new-rele
尤其是那些已经拥有ipad2的果粉,对new ipad尤为不满。
"I got caught up in the hype and pre-ordered one (ATT 64GB) too, worrying
that I would not be able to get one (last year it took me four weeks to get
one, post launch). Opened it up with bated breath and played around with it.
. The screen was pretty good, but in everything I compared, i was hard
pressed to ide... 阅读全帖
o****e
发帖数: 916
14
来自主题: HiFi版 - 卡拉ok软件待定功能
谢谢,播放列表里的控制是有些问题,firefox和chrome下会有错误提示,IE和opera没
有问题。页面用的javascript和mozilla based webbrowser的兼容性有问题。晚上我再
去折腾折腾。

虽然功能
t**r
发帖数: 3428
15
【 以下文字转载自 Programming 讨论区 】
发信人: taar (taar), 信区: Programming
标 题: 大妈是推动技术发展的最大推动力
发信站: BBS 未名空间站 (Tue Dec 31 16:03:48 2013, 美东)
都是码农的话,一人一个显示器,黑白的,一个emacs 看新闻,收发邮件都搞定,
甚至可以命令行定机票
什么webbrowser, youtube, netflix,hulu, 全死翘翘
groupon更是不需要,码农都不消费,不需要deal.
这样一来,数据少了,什么云存储,大数据也都是扯淡.mapreduce根本不需要.
人工智能 机器学习也没那么大的必要了
so all in all.
not,One ring to rule them all..
大妈 to rule them all...
d*****0
发帖数: 1500
16
来自主题: TexasHoldem版 - 视频 一个完整的final table session
it is a preview on webbrowser.
need to download for full versin
total around 70 minutes, 250MB
s*****c
发帖数: 753
17
来自主题: TVChinese版 - [求助]海美迪Q5II
Thanks。
第二行是指
http://www.91vst.com/
very good. Now I use that instead of himedia stuff. download the one for
android box in your himedia webbrowser and install.
Here is what it looks like:
http://www.znds.com/tv-29878-1-1.html
t******g
发帖数: 10390
18
来自主题: Apple版 - Re: Problem with PDF
去IE的preference里查一下preference,看看portable document format的设置。
我的IE5是edit->preference->receiving file->file helpers
一般是找pdf viewer插件,也可以直接找应用程序acrobat reader.
如果没有插件,很可能是没装上,
全硬盘搜索一下PDFViewer,
找到后放到浏览器的插件目录下。
一般那个插件在acrobat目录下webbrowser plug-ins下。
我的浏览器插件目录是:
IE:system folder->internet plug-ins
NS: Netscape folder->plug-ins
p*********9
发帖数: 277
19
就是按了submit后出来了一个新网页,我该怎么读这个新网页的内容呢? 而且新的网页
并没有自己的url地址,只是文字输出到当前页面
谢谢.
部分代码如下:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.
EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
' Load particular page in WebBrowser object
Dim url2 As String = "http://a.com"
WebBrowser1.Navigate(url2)
Dim theElementCollection As Htm... 阅读全帖
s*i
发帖数: 5025
20
来自主题: DotNet版 - 问个c#的抓数据方面的问题
WebBrowser control


so
o***g
发帖数: 2784
21
来自主题: DotNet版 - WebBrowser Control问题
没有人帮忙看看么?
多谢
v***e
发帖数: 25
22
来自主题: DotNet版 - WebBrowser Control问题
我没有下载那个browser。 但我看你那输入网址用的是Java Applet,恐怕你这个
C# browser不支持applet tag吧?
m*******n
发帖数: 154
23
来自主题: DotNet版 - WebBrowser Control问题
if it does not work only for this applet, it should be ok. At least it works
in 99% situations.
o***g
发帖数: 2784
24
来自主题: DotNet版 - WebBrowser Control问题
jdk\demo目录下的所有applet都不好使
j*****o
发帖数: 320
25
来自主题: DotNet版 - 自动化的问题 (WebBrowser)
For 2 and 3, why not submit to the form handler directly?
webBrowser1.Navigate("http://www.insidercow.com/history/company.jsp?company=IBM"
However, you may do #2 like the following.
... Navigate...
webBrowser1.Navigate("http://www.insidercow.com/insidercow.jsp");
... DocumentCompleted ...
HtmlDocument fDoc;
fDoc = webBrowser1.Document;
fDoc.Forms[1].All[5].InnerText = "IBM";
I haven't found the way to submit the form yet.
s*i
发帖数: 5025
26
来自主题: DotNet版 - 自动化的问题 (WebBrowser)
Thanks. Your solution works.
I doubt there is a way to simulate "click" in the new model.
c**t
发帖数: 2744
27
来自主题: DotNet版 - webbrowser control question
能post你的code? 你确信encoding设置对了?
x*g
发帖数: 689
28
来自主题: DotNet版 - webbrowser control question
我没有设置encoding,
string txt = webbrowser1.DocumentText;
如何设置?
c**t
发帖数: 2744
c**t
发帖数: 2744
30
来自主题: DotNet版 - webbrowser control question
did you try to modify the html header? and have you set the Regional and
Language Options?
x*g
发帖数: 689
31
来自主题: DotNet版 - webbrowser control question
No, I didn't modify anything in html header.
defaul Regional and Language Options is set to Chinese.
in the control all chinese display correct, but when
I tried to get the text, they are all messed up.
c**t
发帖数: 2744
32
来自主题: DotNet版 - webbrowser control question
中文是双字节,在用BinaryReader的时候加上encoding 参数试
一试
a9
发帖数: 21638
33
来自主题: DotNet版 - webbrowser control question
Encoding.Convert一下试试看。
l*s
发帖数: 783
34
来自主题: DotNet版 - webbrowser control question
Here is code I used b4. There are different encodings for chinese character
so you need to figure it out.
private string GBToUnicode(Encoding SrcEncoding, Encoding
DstEncoding, string oString)
{
byte[] unicodeBytes;
char[] unicodeChars;
string unicdoeString;
unicodeBytes = Encoding.Convert(SrcEncoding, DstEncoding,
SrcEncoding.GetBytes(oString));
unicodeChars = new char[DstEncoding.GetCharCount(unicodeBytes, 0
, unicodeB
w********o
发帖数: 21
35
来自主题: DotNet版 - 老技术的新问题--关于VB6
I am trying to simulate clicks on a link of a web page using vb6 (sorry I
have to stuck with this old stuff :( ) and the webbrowser control. The link
contains a tag like this:
inner text
I can find the object of this A tag (let's call it objCur), but when I use
this code to simulate the click, it does not work.
objCur.Click
It once worked when the link did not contain javascript, but not now.
I have also tried these:
objCur.
c**t
发帖数: 2744
36
来自主题: DotNet版 - How to uncheck radiobutton?
I'm using System.Windows.Forms.WebBrowser in one WPF project. I'm able to
check all radio buttons with the following code:
foreach(HtmlElment e in wb.Document.GetElementsByTagName("input"))
{
if( e.GetAttribute("type").Equals("radio"))
{
e.SetAttribute("checked", "true");
}
}
but the code e.SetAttribute("checked", "false") does NOT work. How to toggle
the radiobutton in Code behind?
My current work around is to execScript( myCustomJS ), and uncheck radio
buttons via javascrip
l********e
发帖数: 3632
37
来自主题: DotNet版 - 请教一个HTMLelement问题
我也想过。
但是regularExp找到了以后,如何实现onClick这个事件呢?
我用webBrowser的想法就是,找到这个input后然后
elem.invoke("click");
其他我还想不出什么方法出来。。。
a9
发帖数: 21638
38
来自主题: DotNet版 - 请教一个HTMLelement问题
你直接看onclick的代码是干啥的,转成c#的不就行了。
一般不就是检查然后submit嘛。
正好把检查跳过去了。
webbrowser这个烂控件不用也罢。
c****n
发帖数: 21367
39
来自主题: Hardware版 - 这个出来,会搞掉所有的netbook
webbrowser can not be black and white ba...
o********e
发帖数: 474
40
来自主题: Hardware版 - 帮忙解决下蓝牙驱动找不着问题
最近也不知道干了点啥,一开机总是出现提示蓝牙驱动找不着。
见图。自动网络寻找和本地都找不到驱动,况且我根本不知道这两个找不着驱动的设备
/服务是啥!disable或者是uninstall这两个,下次开机或者刷新下就又出来了!看着
很烦!
系统是windows 7 Ultimate 64 bit, thinkpad x201
网上找了一通类似问题,很多人提到要装个windows mobile device center.
于是就去MS网上下。
http://www.microsoft.com/en-us/download/details.aspx?id=3182
可是下不来!!!!
要想下载那个先要下个GeniuneCheck.exe检查正版,我是正版我不怕阿,可是他妈
这个GeniuneCheck.exe根本运行不了!!!说是"This version of the Windows
Genuine Advantage validation tool is no longer supported. Please download
the newest version and ensure... 阅读全帖
f********1
发帖数: 1601
41
来自主题: Linux版 - 雷死人了。靠
那些应用程序是什么? webbrowser, webcam。都是他自己写的??
w*********p
发帖数: 7230
42
来自主题: Programming版 - C# HtmlElement.InvokeMember at Amazon.com
如果我在Amazon上下单买一个东西,如果立即再下单买同样的东西,在place order之
后,Amazon会跳出一个新页面让我点place duplicate order或者cancel duplicate
order.我简单的找到"cancelOrder"button后模拟点击,可是他不正常工作,又跳回
place order页,可是用同样的方法下单一点问题都没有,只是最后一步duplicate
ordre不工作,有人知道为什么么或者谁可以试验一下么
foreach (HtmlElement input in webBrowser.Document.GetElementsByTagName("
input"))
{ if (input.Name == "cancelOrder") input.InvokeMember("click"); }
下面是表单
X****r
发帖数: 3557
43
那是HTTP POST的结果吧,自然URL都是一样的啊。你看一下POST用的参数,照样POST就
是了。
或者你如果会用Windows下的WebBrowser控件的话,用C++/C#来写也很快。
S*********g
发帖数: 5298
44
来自主题: Programming版 - 如何实现将网页内容自动存取?
C#最简单。有现成webbrowser用,做他这个project,10分钟应该就差不多了。
p****e
发帖数: 3548
45
有人能帮忙吗?谢谢
X****r
发帖数: 3557
46
Javascript本身就在Web Browser里运行的,你要做到什么效果?
如果是要Javascript在网页上显示信息的话,可以用DOM操作。
1 (共1页)