Original address: http://blog.csdn.net/nanfeiyannan/article/details/7341492 These days, contact with the embedded Web page in Delphi, with the delphi7 of the Twebbrowser control, display the content and the native IE8 display is not the same, but with the IE6 before the IE8 display an effect. Now Bright is one of the following two reasons: 1.Navigate This method with a bit of a problem, inside the parameters and Navigate2 different methods, call the v
These days, contact with the embedded Web page in Delphi, with Delphi7 of the Twebbrowser control, the display content and the IE8 display of the same, but with the installation IE8 before the IE6 show an effect. Now hurrying feet is one of the following two reasons:
1.Navigate This method with a bit of a problem, with different parameters and Navigate2 and other methods, the call of the IE kernel version is different
2. This self-contained control wi
(ihtmldocument2(webbrowser1.doc ument). Body. outerhtml );
End;
In this way, memo1 displaysWww.baidu.comHtml
Use the webbrowser1 control to browse the content of a TXT file and display it in HTML format.
Add the following code to the ondocumentcomplete event in the webbrowser1 control:
Procedure tform1.webbrowser1documentcomplete (Sender: tobject;
Const Pdisp: idispatch; var URL: olevariant );
VaR
Webdoc: htmldocument;
Webbody: htmlbody;
Begin
Webdoc: Invalid webbrowser1.
Procedure Iterateframes (const AWB:IWEBBROWSER2);VarDoc:ihtmldocument2;Container:iolecontainer;Enumerator:ActiveX.IEnumUnknown;Unknown:iunknown;Browser:iwebbrowser2;Fetched:longint;Newdoc:ihtmldocument2;Beginif (Assigned (AWB). Document) and (Supports (AWB). Document, IHTMLDocument2, Doc) ThenBeginRecursive searching.achtung! We cannot use the document ' s frames collection here, becauseIt does in every case (i.e. Documents from a foreign domain).From:support.microsoft.com/support/kb/articles/q1
Twebbrowser usually used more, but also collected a lot of messy skills. However, there are too many things too miscellaneous, every time when the use of a patchwork again, it is too tired. So long have written a group of WebBrowser routines, intend to use some of the common code of similar to tidy up, in order to check. Attached to the complete project, see the end of the article.
This is the first article about inserting HTML and executing scripts.
Recently, when we used the embeddedwb Control for browser-related applications, we found that some webpages will encounter an "invalid floating point operation" exception as long as they are opened (the browser will not respond after the exception dialog box is turned off ), whileProgramJust one sentenceWebbrowser1.navigate (edit1.text );It seems that many web pages with Silverlight elements will bring out this bug when they are opened. In general, when using some floating point operations, Micr
Procedure TForm1.WebBrowser1DocumentComplete (Sender: TObject; const pDisp: IDispatch; var URL: OleVariant); begin // WebBrowser1.oleobject can be hidden horizontally and vertically. document. body. scroll: = 'no'; WebBrowser1.oleobject.Document.doc
The following is an example of how to obtain the HTML of its webpage element from Internet Explorer.Source code:
Const
Rspsimpleservice = 1;
Rspunregisterservice = 0;
TypeTobjectfromlresult = function (lresult: lresult; const IID: tiid;
Transfer from Http://hi.baidu.com/delphidiaryTransfer from http://blog.sina.com.cn/s/blog_725fb194010150jh.htmladd several PAS units in front of//uses Registry,shellapi, WinInet,shlobj, comobj ;======================================== Delete cookies=
First of all, I wish you a happy new year. In the new year, you will be able to learn and succeed in your career, and your family and body will be happy.In today's software, there have been more cases of embedding web pages, which simplifies the
Original article: http://blog.csdn.net/dropme/article/details/6253528
Put an applicationevent control on the form, which is written in the onmessage event.
uses ActiveX;procedure TForm1.ApplicationEvents1Message(var Msg: tagMSG; var Handled:
Place an applicationevents control in form,Write the following code in the onmessage event:
Uses ActiveX
Procedure tform1.applicationevents1message (var msg: tagmsg;VaR handled: Boolean );
ConstStdkeys = [vk_tab, vk_return, vk_delete, vk_back];
Recently wrote a software called WebBrowser, the purpose of the Web page to automate the processing, that is, all of your actions on the Web page can be recorded in a script, and then you can replay the process. I mean, any process.
The program is written in C #, which encountered a problem, for the Web page, I was using C # built-in WebBrowser control control, but this control has a problem, for some of th
Recently I wrote a software called webbrowser for Automatic Webpage operations. That is to say, all your operations on the webpage can be recorded in a script, then, you can play back the operation .. I mean any process.
ProgramI wrote it in C #, and encountered a problem. For webpages, I used the built-in webbrowser control in C #, but this control has a problem, for links on some web pages, if you ope
WebBrowser control (personal diary, I am also a newbie), webbrowser Control
I know two types of Web Simulation
1: Get the page through HttpRequest's Get/Post submission method
2: Use the C # webBrowser control to simulate page clicks
2nd types of encryption algorithms are available on the page, or 1st types of random parameters are recommended for simple web pag
One Parameter solves the webbrowser cache problem in the application
In the past two days, when the webbrowser control is used in the application to load webpages, a problem occurs. When the same address and URL with the same parameters are repeatedly loaded, webbrowser will automatically load the local cache.
In order to solve this problem, I read a lot of rela
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.