Auto fill form in Silverlight OOB -



Auto fill form in Silverlight OOB -

i have silverlight out-of-browser (oob) application has webbrowser command within it. displayed website in inner web browser comes different domain application xap file. how automatically fill form displayed in inner browser? preferably straight silverlight, or javascript.

i have tried invoke external javascript code silverlight application:

webbrowser.invokescript ("eval", "document.getelementbyid('formfield1').value = 'value1';" + "document.getelementbyid('formfield2').value = 'value2';"+ "document.forms[0].submit();");

apparently silverlight limits functionality due security reasons (cross-site scripting think).

webbrowser.invokescript

executes specified script, defined in loaded html.

since js code not loaded in html displayed in web browser command can't utilize approach.

most obvious solution modify target website contain js code. hear other options.

silverlight silverlight-oob

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -