AngleSharp / AngleSharp.Js

:angel: Extends AngleSharp with a .NET-based JavaScript engine.
https://anglesharp.github.io
MIT License
103 stars 22 forks source link

Js functions present in Js file located in wwwroot of WebApplication not working #74

Closed alberspim closed 3 years ago

alberspim commented 3 years ago

First of all, keep up the good work! I love AngleSharp and it is a great addition for my tests.

I need some help how to use external script resources. (Using AngleSharp.Js version 0.14.0)

I have a small .netCore MVC web project and want to get a page that makes use of javascript functions that are present in a .js file inside the wwwroot folder of the web project.

Plane.cshtml

image

plane.js

image

I have created a helper to retrieve the HtmlDocument

image

Long story short, the controller method "plane/GetPlaneData" to retrieve the data is not called. Is this even possible? If yes, could you give some tips on how to get this to work?

Many thanks