I know you can return a javascript view but this has never worked for me.
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).
Edit: 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!
All i have is references to these libraries, script/link references as you do on the top of your master page.
I’ve never had an issue with JQuery like that, but for testing purposes you could try using this in a view:
And an action method:
Just to test the code working. Nothing special, must a view with this alert and an action method in any controller.
Does that work?