Issue Is it possible to test if a javascript object contains a property? I’m currently wrapping try/catch for each property I’d like to access. I dont think this is an efficient way to check if properties exist on the object.
Continue readingCategory: Flutter
Using the jQuery input mask plugin with a Dart Web UI component
Issue I’m trying to use an input mask jQuery plugin in Dart. The plugin works fine when the element I’m trying to add the mask to isn’t in a web component, but when I add it to a web component
Continue readingUsing array notation instead of NSM on functions deeper then js.context.X
Issue Can all objects after js.context be accessed with array notation from Dart? For example, I’d like to convert the following to use array notation: var request = js.context.gapi.client.request(js.map(requestData)); Will the following array notation work? var request = js.context[‘gapi’][‘client’][‘request’](js.map(requestData)); Also,
Continue readingObserve changes in TinyMCE from Dart
Issue According to TinyMCE API, the following JavaScript code observe changes in TinyMCE editor: tinyMCE.init({ … setup : function(ed) { ed.onChange.add(function(ed, l) { console.debug(‘Editor contents was modified. Contents: ‘ + l.content); }); } }); However, I’m unable to run this
Continue readingNoSuchMethodError with dart.js
Issue I’m trying to use paper.js with Dart through js.dart. A lot seems to work, but I also need the method importSVG from paper.js. When I try to access it with js.context.paper.project.importSVG(query(“#svg”)); I get NoSuchMethodError. It’s somehow because the method
Continue readingHow to use the proxies returned from javascript in dart
Issue I’m currently calling a function in JavaScript from dart that takes in a JSON string and a success callback. The callback from JavaScript should be returning a response as a JSON string. However I am unable to get this
Continue readingUsing the dart:js library without a html file
Issue Is it possible to use the dart:js library without having a html file to load the js files but some alternative way of loading the javascripts in the context? I need this for a command-line app, so having a
Continue readingHow to make window.prompt in Dart?
Issue I make some apps using Dart and I have one simple question. I haven’t found the prompt dialog in dart:html library. I’ve found only alert and confirm dialog calls, but that’s not, what I need. I’ve tried some other
Continue readingDart tutorial on using Javascript libraries
Issue Is there a new tutorial on how to use a Javascript library in Dart? I’d like to use a color processing library (or better color-thief) in Dart, but I have not found a tutorial on how to use a
Continue readingUsing dart:js to stream audio through the SoundCloud JavaScript API
Issue I’m trying to write a library that will make it easer for dartisans to use the SoundCloud JavaScript SDK (http://developers.soundcloud.com/docs/api/sdks#javascript). I’m using the ‘dart:js’ library, and I’m only using one class to handle the proxy. class SCproxy { JsObject
Continue reading