public void ExecJavaScript(string command, object[] args) { string argString = ""; bool first = true; foreach (object obj in args) { if (!first) { argString += ", "; } first = false; argString += obj.ToString(); } wb.ExecuteScript(command + "(" + argString + ")"); }
public void ExecuteScript(string s) { webview.ExecuteScript(s); }
private void OpenUrl(string uri) { Hyena.Log.DebugFormat("Opening {0}", uri); //Open (uri); view.ExecuteScript(String.Format("document.location = \"{0}\";", uri)); }