try icon indicating copy to clipboard operation
try copied to clipboard

Project Description - Simple to Embed: JavaScript Support

Open LadyNaggaga opened this issue 7 years ago • 7 comments

Suggestion from @jskeet Reference: Product Roadmap Review

Feedback: For Noda Time, I wrote a horribly hacky bit of JavaScript for the various interactions with the server. None of this was complicated, or it wouldn't exist - my command of JavaScript is pretty dire. But it makes sense to avoid wheel reinvention: the Try.NET project could provide the JavaScript to make all of this work with very little effort on the part of the site developer wanting to embed Try.NET.

LadyNaggaga avatar Jun 22 '18 15:06 LadyNaggaga

If it's useful to see the code that I've got, it's here: https://github.com/nodatime/nodatime/blob/335de575f51912a45adf70fcef6a8a5dcd09595f/src/NodaTime.Web/wwwroot/js/trydotnet.js

Try not to laugh too hard ;)

jskeet avatar Jun 22 '18 17:06 jskeet

@jskeet , @LadyNaggaga Now that we publish js api is worth reviewing this issue.

colombod avatar Jun 03 '19 12:06 colombod

Definitely very happy to give this a go when I can, although it won't be for a couple of weeks, I expect :(

jskeet avatar Jun 03 '19 12:06 jskeet

Is there documentation for using the JS API from a regular web application? Most of the docs I've seen are for the dotnet try command (understandably!) rather than embedding in a web application.

jskeet avatar Jun 08 '19 08:06 jskeet

This isn't documented yet.

jonsequitur avatar Jun 09 '19 16:06 jonsequitur

Hi, @colombod is there any news on this, I would love to use trydotnet, but because the trydotnet.js is closed for public its currenlty quite hard, the only way is really to do something what jskeet did.

DomenPigeon avatar Nov 04 '22 17:11 DomenPigeon

Same deal, even basic docs on how one could use the online .Net interactive on their own docs site would be greatly appreciated.

douglasg14b avatar Apr 21 '23 16:04 douglasg14b