2

What is the Dart equivalent of Jquery getScript (to load javascript from Dart) ? http://api.jquery.com/jquery.getscript

Thanks for your suggestions.

1 Answer 1

1

I don't think Dart provides a function that does this.

You can fetch the script using an HttpRequest, create a script element, add the received text to the element and then use Dart-js-Interop to call a JavaScript function.

Alternatively you can add jQuery and call getScript using Dart-js-Interop.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.