Page 1 of 1

[Bug]JSIL.Builtins.Global[name] return null

Posted: Fri Jun 12, 2015 9:22 pm
by h82258652

Code: Select all

var window=JSIL.Builtins.Global["window"];

after run this code, the window variable is null.

Re: [Bug]JSIL.Builtins.Global[name] return null

Posted: Mon Jun 15, 2015 9:14 am
by JS-Support @Userware
Thanks a lot for the bug report.

We are going to investigate this issue.

In the meantime, you can use the "JSIL.Verbatim.Expression" method to call JavaScript code from within your C# code, and thus access the "window" object. For example, the following C# code will change the current URL:

Code: Select all

JSIL.Verbatim.Expression("window.location.href = ''");

Thanks again,