C# WebBrowser control - creating and modifying a javascript variable using DOM then reading it using Applet -


I need to have a communication process between the Java applet and the HTML page of the C # Web browser control I and I will call it the html page I want to do without refreshing. I know that I can communicate using applet parameter with applet, but in that case I have to refresh the applet page to get the parameters to be updated. I can also use cookies, but I do not want to send all those unnecessary cookies to the server for each request. So I was wondering if there is a way to use the DOM using the ARP variable of Java and then read it with the applet. But I do not know whether it is possible or maybe there are other ways to do this. Any suggestions would be highly appreciated.

Thanks

You can get this by injection in the Webrowser control HTML code DocumentText property

  string HTML code = " gt>  gt; & lt; / head & gt; Lt; body & gt; "; Html code = "& lt; applet code =" example "square" width = "350" height = "350"> gt; & Lt; / Applet & gt; "; HtmlCode + =" & lt; / Body & gt; & Lt; / Html> "; WebBrowser1.DocumentText = htmlCode;    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -