title: How to call a javascript subroutine from MVC server side code?
body: <p>I know you can return a javascript view but this has never worked for me.</p>
  
  <p>I couldn't find a proper tutorial or explanation about this concept either, if anyone can shed some light on it that would be great (yep, ive tried google countless times).</p>
  
  <p><strong>Edit</strong>: I've used your tips, debugger etc. Thanks guys. wow! I just noticed something, every time i try to call a function, no matter what function, in javascript, somehow jQuery and ms ajax framework javascript captures it and checks if the document is ready (document.onready or other) and never returns the control back to the function im calling! Why is it doing this? I've never asked for it to!</p>
  
  <p>All i have is references to these libraries, script/link references as you do on the top of your master page.</p>