1

How can I call a jQuery function from a MVC controller?

I was looking at this answer but I am not sure what "page" means here.

3
  • I don't think your linked post even relates to MVC. The link in the accepted answer goes to a (defunct) Ruby on Rails documentation. Commented Jul 19, 2013 at 7:13
  • That is just an example. My scenario is MVC. Commented Jul 19, 2013 at 7:18
  • Not directly but you can try this way stackoverflow.com/questions/14049817/… in success callback Commented Jul 19, 2013 at 7:26

2 Answers 2

1

Something strange about page for me too. I think that you can use SignalR library for your purpose. It allows to call javascript functions from client side inside controller and much much more cool things.

Sign up to request clarification or add additional context in comments.

Comments

1

You can't call js functions from mvc controller. But you can send messages from server side to client side that will rise events via websockets or server push technology.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.