Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: consolidating four similar classes Pin
Alexander Kindel17-Apr-18 11:34
Alexander Kindel17-Apr-18 11:34 
GeneralRe: consolidating four similar classes Pin
#realJSOP17-Apr-18 12:33
mve#realJSOP17-Apr-18 12:33 
GeneralRe: consolidating four similar classes Pin
Alexander Kindel17-Apr-18 16:53
Alexander Kindel17-Apr-18 16:53 
GeneralRe: consolidating four similar classes Pin
#realJSOP19-Apr-18 2:50
mve#realJSOP19-Apr-18 2:50 
AnswerRe: consolidating four similar classes Pin
Gerry Schmitz18-Apr-18 7:05
mveGerry Schmitz18-Apr-18 7:05 
GeneralRe: consolidating four similar classes Pin
Alexander Kindel18-Apr-18 12:11
Alexander Kindel18-Apr-18 12:11 
GeneralRe: consolidating four similar classes Pin
Gerry Schmitz19-Apr-18 8:50
mveGerry Schmitz19-Apr-18 8:50 
QuestionC# Javascript in WebBrowser Pin
unfolded16-Apr-18 8:37
unfolded16-Apr-18 8:37 
Hello, I try to use an Javascript to autofill a textbox.


C#
HtmlElement headElement = webBrowser3.Document.GetElementsByTagName("head")[0];
HtmlElement scriptElement = webBrowser3.Document.CreateElement("script");
IHTMLScriptElement element = (IHTMLScriptElement)scriptElement.DomElement;
element.text = "function fillbox() { document.getElementById('ember891').value = 'test@test.com' }";
headElement.AppendChild(scriptElement);
webBrowser3.Document.InvokeScript("fillbox");


I try it here: account.sonyentertainmentnetwork.com/home/index.action , when you click the bottom button the register, then start and there the first textbox for the email.

When I open google chrome on this site and enter :
javascript:document.getElementById('ember891').value = 'test@test.de'
in the console, everything is just fine, but it won't work with the c# application. So I want to get it working, that I am able to fill the textbox with a button click per Javascript. Confused | :confused: Confused | :confused:

modified 17-Apr-18 10:39am.

AnswerRe: C# Javascript in WebBrowser Pin
Eddy Vluggen17-Apr-18 0:00
professionalEddy Vluggen17-Apr-18 0:00 
GeneralRe: C# Javascript in WebBrowser Pin
unfolded17-Apr-18 1:06
unfolded17-Apr-18 1:06 
GeneralRe: C# Javascript in WebBrowser Pin
Eddy Vluggen17-Apr-18 6:32
professionalEddy Vluggen17-Apr-18 6:32 
GeneralRe: C# Javascript in WebBrowser Pin
unfolded18-Apr-18 8:12
unfolded18-Apr-18 8:12 
AnswerRe: C# Javascript in WebBrowser Pin
Gerry Schmitz18-Apr-18 7:22
mveGerry Schmitz18-Apr-18 7:22 
GeneralRe: C# Javascript in WebBrowser Pin
unfolded18-Apr-18 8:10
unfolded18-Apr-18 8:10 
GeneralRe: C# Javascript in WebBrowser Pin
Gerry Schmitz18-Apr-18 8:59
mveGerry Schmitz18-Apr-18 8:59 
GeneralRe: C# Javascript in WebBrowser Pin
unfolded19-Apr-18 1:48
unfolded19-Apr-18 1:48 
GeneralRe: C# Javascript in WebBrowser Pin
Gerry Schmitz19-Apr-18 9:08
mveGerry Schmitz19-Apr-18 9:08 
QuestionWebBrowser script communication problem inside C # ActiveX Control Pin
SoulToMind15-Apr-18 22:01
SoulToMind15-Apr-18 22:01 
SuggestionRe: WebBrowser script communication problem inside C # ActiveX Control Pin
Richard MacCutchan15-Apr-18 22:28
mveRichard MacCutchan15-Apr-18 22:28 
GeneralRe: WebBrowser script communication problem inside C # ActiveX Control Pin
SoulToMind15-Apr-18 23:23
SoulToMind15-Apr-18 23:23 
AnswerRe: WebBrowser script communication problem inside C # ActiveX Control Pin
Gerry Schmitz16-Apr-18 7:59
mveGerry Schmitz16-Apr-18 7:59 
QuestionFixing divide by zero exception into a whole new problem Pin
Member 1377871513-Apr-18 13:56
Member 1377871513-Apr-18 13:56 
AnswerRe: Fixing divide by zero exception into a whole new problem Pin
Luc Pattyn13-Apr-18 15:26
sitebuilderLuc Pattyn13-Apr-18 15:26 
GeneralRe: Fixing divide by zero exception into a whole new problem Pin
Member 1377871513-Apr-18 16:38
Member 1377871513-Apr-18 16:38 
GeneralRe: Fixing divide by zero exception into a whole new problem Pin
Luc Pattyn13-Apr-18 16:46
sitebuilderLuc Pattyn13-Apr-18 16:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.