AngleSharp / AngleSharp.Js

:angel: Extends AngleSharp with a .NET-based JavaScript engine.

Home Page:https://anglesharp.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

alberspim opened this issue · comments

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