dotnet / try

Try .NET provides developers and content authors with tools to create interactive experiences.
MIT License
2.9k stars 525 forks source link

Project Description - Simple to Embed: JavaScript Support #95

Open LadyNaggaga opened 6 years ago

LadyNaggaga commented 6 years ago

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.

jskeet commented 6 years ago

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 ;)

colombod commented 5 years ago

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

jskeet commented 5 years ago

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

jskeet commented 5 years ago

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.

jonsequitur commented 5 years ago

This isn't documented yet.

DomenPigeon commented 2 years ago

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.

douglasg14b commented 1 year ago

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