Posts 1 - 10 of 39
First | Prev. | 1 2 3 4 | Next | Last
|
|
pa1 modi
Guest
|
hi sergey,
how to do Auto-complete means Auto fill form in IE9 with c# code ??
like Autofill Forms in firefox?? |
|
Posted 25 Aug, 2011 00:48:20
|
|
Top
|
|
pa1 modi
Guest
|
hi sergry,
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
While Me.HTMLDocument.readyState <> "complete"
'wait
End While
If Me.HTMLDocument.url = "http://www.darkhorizon.org/rftest.html"; Then
Debug.WriteLine("outerHTML:" & Me.HTMLDocument.documentElement.outerHTML)
Dim wbd As mshtml.HTMLInputElement
For Each wbd In Me.HTMLDocument.getElementsByTagName("input")
Debug.WriteLine("DocObj: " & wbd.name)
Select Case wbd.name
Case "txtName"
wbd.value = "Mr. Crispy"
Case "txtNumber"
wbd.value = "904-867-5309"
End Select
Next
End If
End Sub
hey can you provide me this code in c# ?? |
|
Posted 25 Aug, 2011 05:36:13
|
|
Top
|
|
Sergey Grischenko
Add-in Express team
Posts: 7233
Joined: 2004-07-05
|
Hi Pavan.
how to do Auto-complete means Auto fill form in IE9 with c# code ??
Add-in Express doesn't provide such a feature. Please try to search for third-party components in the Internet.
The code above but in C#:
private void Button1_Click(object sender, System.EventArgs e)
{
while (this.HTMLDocument.readyState != "complete")
{
//wait
}
if (this.HTMLDocument.url == "http://www.darkhorizon.org/rftest.html")
{
System.Diagnostics.Debug.WriteLine("outerHTML:" + this.HTMLDocument.documentElement.outerHTML);
foreach(mshtml.HTMLInputElement wbd in this.HTMLDocument.getElementsByTagName("input"))
{
System.Diagnostics.Debug.WriteLine("DocObj: " + wbd.name);
switch (wbd.name)
{
case "txtName":
wbd.value = "Mr. Crispy";
break;
case "txtNumber":
wbd.value = "904-867-5309";
break;
}
}
}
} |
|
Posted 25 Aug, 2011 11:02:54
|
|
Top
|
|
pa1 modi
Guest
|
thanks sergry,
how to open popup window by click on textbox of webpage with c# ?? |
|
Posted 26 Aug, 2011 04:38:05
|
|
Top
|
|
Sergey Grischenko
Add-in Express team
Posts: 7233
Joined: 2004-07-05
|
|
Posted 26 Aug, 2011 11:17:15
|
|
Top
|
|
pa1 modi
Guest
|
Hi sergey,
i have check that link but its just open a new window with blank URL not the popup window
so, how to open a popup window when click on textbox of gmail or any of webpage....??
thanks |
|
Posted 29 Aug, 2011 00:48:36
|
|
Top
|
|
pa1 modi
Guest
|
hi sergey,
how to retrieve usename and password of gmail from history mean from your local pc using c#??
mean store the the google username and password, for example, locally, either in a txt file or .db file
how do I get the user's account information (his Gmail address and password) after the authentication has passed...?? |
|
Posted 29 Aug, 2011 07:54:38
|
|
Top
|
|
Sergey Grischenko
Add-in Express team
Posts: 7233
Joined: 2004-07-05
|
Hi Pavan.
how to open a popup window when click on textbox of gmail or any of webpage....??
You can use the code below. However, if Popup Blocker is enabled, IE will ask you to allow this popup window.
object dummy = null;
object urlObj = string.Format("javascript:void(window.open('{0}','{1}','left={2},top={3},width={4},height={5},resizable=no,scrollbars=yes,toolbar=no,location=no,status=no,menubar=no'))",
"about:blank", "", 0, 0, 300, 200);
this.IEApp.Navigate2(ref urlObj, ref dummy, ref dummy, ref dummy, ref dummy); |
|
Posted 29 Aug, 2011 10:40:14
|
|
Top
|
|
Sergey Grischenko
Add-in Express team
Posts: 7233
Joined: 2004-07-05
|
how to retrieve usename and password of gmail from history mean from your local pc using c#??
If 'cookie' is enabled in IE, you can use the InternetGetCookieEx method to get it.
Please read the following post:
http://www.add-in-express.com/forum/read.php?FID=10&TID=7994&MID=40478#message40478
how do I get the user's account information (his Gmail address and password) after the authentication has passed...??
Pavan, I am afraid that I can't help you in this case. Please ask the GMail support service. Probably they provide any public web services. |
|
Posted 29 Aug, 2011 10:48:08
|
|
Top
|
|
pa1 modi
Guest
|
HI Sergy,
i have use this following event for insert data in the g mail's username and password field
-when i click on username textbox it's auto fill data..
but also fill data in password textbox after click on password textbox of gmail..
so,how to make restriction for password textbox...??
private void adxiehtmlDocEvents1_OnClick(object sender, object eventObject, ADXCancelEventArgs e)
{
............
................some code
..........
}
i just want on_click event for inputText only for gmail page..means for username textbox.. |
|
Posted 03 Sep, 2011 06:04:47
|
|
Top
|
|
Posts 1 - 10 of 39
First | Prev. | 1 2 3 4 | Next | Last
|