Problem running JQuery 3.5.1 on Windows 11

Corey Fleig 80 Reputation points
2024-04-10T21:06:47.66+00:00

I have a Core 3.1 MVC app that loads JQuery 3.5.1. When a customer clicks a product detail button, it calls ajax:

JS Image

It invokes the controller, and then my modal view appears:

Modal Image

All this works great when built with VS 2019 on WIndows 10. But when I try to recreate the app on WIndows 11, the modal doesn't display.

(Before I upgrade to .Net 8, I'd like to make sure everything works.)

When I monitor the browsere Network trace, it posts fines, the controller method is accessed, but when it leaves the controller, the screen just goes dark. I assume it has to do with JQuery, but I'm not sure.

Any thoughts?

Developer technologies ASP.NET ASP.NET Core
{count} votes

Accepted answer
  1. Michael Taylor 60,161 Reputation points
    2024-04-10T21:15:11.5733333+00:00

    jQuery doesn't care about your operating system, it doesn't even have access to it. The problem is either in your app code or the browser itself. Please clarify what browser you're using and the version in each environment. Also test your app using different browsers to determine what the behavior is.

    My gut instinct is the problem is in your jQuery or a browser security setting. Set a breakpoint on the call to your API and on the response and error blocks. Then execute the code in your browser to see what the behavior is.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.