var engine = new Jurassic.ScriptEngine(); var scriptsource = new Jurassic.StringScriptSource(Uri.UnescapeDataString(html), null);
try { var ans = engine.Evaluate(Uri.UnescapeDataString(u1.URI.AbsolutePath)); u1 = new URL(engine.GetGlobalValue("document.location.href").ToString()); } catch (Exception ex) { System.Windows.Forms.MessageBox.Show(ex.Message); }
// First, give U1 a value... u1 = new URL(engine.GetGlobalValue("document.location.href").ToString()); // ... and only later use it. var ans = engine.Evaluate(Uri.UnescapeDataString(u1.URI.AbsolutePath));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)