Start a new topic

Access native javascript objects

First off.... WOW.


 I am a .net developer who spent the last year trying to learn GWT (Google Web Toolkit - Java) so i can make web apps (I hate native javascript... I can write it, i just hate it).


Most of my coding efforts in GWT was accessing native

javascript object via google JSNI (Java Script Native Interface)


So i have two main questions about DuoCode

1... How would access a native javascript object (Not just the document and window but actual javascript object that may have created from external javascript)


2... How EXACTLY do you reference AND USE an external javascript library


The follow does not tell me too much:


dynamic doc = Js.referenceAs<dynamic>("document");

string bodyString = doc.body.toString() as string;


This is the same as Global Document in DuoCode C# already


So what would a REAL javascript reference look like for lets say the webix library (I am assuming):

dynamic webix = Js.referenceAs<dynamic>("webix.js");


So how do i use the methods and properties of the webix library



NOTE: I realize this is still beta... But if i can at least know for sure that using

DuoCode in the near future WILL let me be able to access native javascript

objects and use existing javascript libraries like webix.js... I WILL ABANDON GWT TODAY... and start learning DuoCode.


PLEASE TELL ME THESE FEATURE ARE IN THERE OR AT LEAST IN THE PIPELINE.


This has got to be the BEST .NET C#/Javascript development out there for

.NET developers (Who dont want to have write in java just to cross-compile to javascript using GWT)


Login or Signup to post a comment