 |
|
|
 |
|
|
 |
|
|
Friends,
I want to find the properties of HTML controls in html files. Is there any method of webbrowser control to find the properties of all HTML web controls in html page,(The html page) which is displyed in the webbrowser control ?
Thanks in Advance.
|
| Sign In·View Thread·PermaLink | 1.50/5 (2 votes) |
|
|
|
 |
|
|
how do i write this in c++?
my try:
mshtml::HTMLDocument^ doc= gcnew mshtml::HTMLDocumentClass(); doc = (mshtml::HTMLDocument^) axWebBrowser1->Document; mshtml::HTMLInputElement ^login = (mshtml::HTMLInputElement^) doc->all->item("loginname",0); login->value= "test";
keeps the program crashin.. pls help.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
i noticed that the control uses the default windows cookies directory to store cookies and so shares the cookies with IE. Can this directory be overridden somehow ?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hello
I want to save the source of the result page(after button clicked) but I didnt find a propper way to achieve it with code
if ( ( (int)axWebBrowser1.ReadyState >= 4) & ( ! axWebBrowser1.Busy )) { str = new StreamWriter("C:\\saved.txt"); str.Write( myDoc.documentElement.innerHTML) ;
}
any help would be apreciated. .
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
At the begining ,I'm sorry for my poor English...
Now I'm make a WinForm application and input the axWebBrowser in it. then I get a program to auto fill the input box in the webpage for the page have frameset in it.
for example: I navigate http://website/t1.htm ,it's have a frame that <frameset name="t2" src="t2.htm"> then at the t2 document ,it contain a frame <frameset name="t3" src="t3.htm">
in t3, there have <form name="a1"><input type="textbox" name="text1" value="ok"></input></form>
======== then when I browse t1.htm ,how can I get the value of textbox named text1 in t3.htm?
best regards </frameset></frameset>
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
|
Hello friends , I need some help this is my requirment
I have
1)a textbox
2) a webbrowser component in my windows form
3) a aspx form
now when i execute my windows application, i will enter my aspx form address inthe text box. this aspx form will have a function which returns a string. i need to capture this string and print on my windows form(may be a lable or a message box)
how can i do that?
waiting for ur reply
with regards
harivinod
harivinod
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
You'll have to use the WebBrowser.Document.DomDocument class instead to get the MSHTML corresponding HTMLDocument object
Dim htmlDoc As HTMLDocument Dim userBox As HTMLInputElement Dim passBox As HTMLInputElement
htmlDoc = New HTMLDocumentClass() htmlDoc = CType(IE.Document.DomDocument, HTMLDocument)
userBox = htmlDoc.all.item("user_login") passBox = htmlDoc.all.item("user_pass")
userBox.Value = "abcdef"
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
Hi again.
I do this by myself. :->
When I'm using VS2005, there is necessary install a package that come with VS2005 "C:\Archivos de programa\Archivos comunes\Merge Modules\vs_piaredist.exe" (i'm sorry the name of folders in spanish, but will be something like "C:\Program Files\Common files\Merge Modules\vs_piaredist.exe"), and "voir à" the application runs. 
So, thank you all for the attencion.
Cacho. 
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
For example,
int nTask = 1; \\global var
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) switch(nTask) { case 1: //do something here <- Add "System.Threading.Thread.Sleep(10000);" nTask += 1; break; case 2: //do something here <- Add "System.Threading.Thread.Sleep(10000);" nTask -= 1; break; } }
It seems ok, but if I want to add some delay here by using "System.Threading.Thread.Sleep(10000)", the problem comes.
The whole windows will get occupied, you cannot move it and do anything on the webpages, such as click a button. I know that it is due to the current thread is holded by "System.Threading.Thread.Sleep(10000);", and the window can not response you until it is finished.
But if I cannot add delay here, where can I add the delay to make the same effect but no the problem described above?
Any help will be highly appreciated. Thanks
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Try this..
using System.Windows.Forms; using System.Threading;
url(@"http://www.google.com", new TimeSpan(0,0,30));// 30 sec
private void url(string url, TimeSpan ts) { object loc = url; object null_obj_str = ""; System.Object null_obj = 0;
this.webBrowser1.Navigate2(ref loc , ref null_obj, ref null_obj, ref null_obj_str, ref null_obj_str);
DateTime timeStamp = DateTime.Now; do { Thread.Sleep(100); Application.DoEvents(); }while (this.webBrowser1.Busy && (timeStamp + ts > DateTime.Now));
if(timeStamp + ts < DateTime.Now) { throw new Exception("URL timed out"); } }
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
There are some websites, which need cookie to operate.
If I open several browsers in the same time, can I have a separate set of cookie to other browser?
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
I had problem with adding mshtml to project:
Error 1 The type or namespace name 'mshtml' could not be found (are you missing a using directive or an assembly reference?
I solved this by typing instead of "using mshtml;" "using MSHTML;"
maybe it will help someone
VsMax
|
| Sign In·View Thread·PermaLink | 3.00/5 (4 votes) |
|
|
|
 |
|
|
Hi,
I am looking for a webclient/webbrowser component to screen scrape HTML but while scraping I want to make sure that the component reads and executes any javascript on the page. Is it possible with this component?? And also can we spoof headers for this component. Which user-agent does this component send the request from?
Thanks
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
Yan can also try SWExplorerAutomation (SWEA) from Webius http://webiussoft.com[^]. SWEA automates Web Browser.The program creates an automation API for any Web application developed with HTML, DHTML or AJAX. The Web application becomes programmatically accessible from any .NET language. SWEA API provides access to Web application controls and content. The API is generated using SWEA Visual Designer. SWEA Visual Designer helps create programmable objects from Web page content.
AlexF
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi,
Does any body know how to disable this popups?
axWebBrowser.Silent =true
Does it work?
If it is work:
Where can I declare axWebBrowser.Silent property to true in the:
private void Form_Load(object sender, System.EventArgs e) { axWebBrowser.Silent =true }
Or
private void axWebBrowser1_DocumentComplete(object sender, AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e) { axWebBrowser.Silent =true }
Asiri
-- modified at 5:39 Friday 19th January, 2007
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
Yes my friend if you use the Silent property of AxSHDocVw.AxWebBrowser then you do get rid of javascript alerts pop-ups
you can use in the DocumentComplete or DownloadComplete events.
private void axWebBrowser1_DocumentComplete(object sender, AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e) { axWebBrowser.Silent =true }
thanks, Ahmad
the woods are lovely dark and deep. but i have promises to keep. there are miles to go before i sleep... there are miles to go before i sleep...
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
|
Hi
If it is something like this:
href="javascript:__doPostBack('NavigatorBar21$LinkButton1','')
you have to excute the javascript
Objec.parentWindow.execScript("__doPostBack('NavigatorBar21$LinkButton1','')", "javascript");
Asiri
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
thanx for help as its has solved my problem but how we can make our web browser component point to next page so that we can play whith controls of that page waitin for reply regards vivek
sdas
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |