I need to exec some js each time a page loads, and also every time a view is returned after a post action. I use jQuery.ajax to post form - using url of Controller/Action. Post is successful and response data is correct, but my js doesn't get called.
I had js in a script tag, within the head of my view.aspx, and found that it does not execute each time the response is received after a post action. I also tried calling this within $(document).ready, but this does not execute after post action. window.onload also does not exec after post action.
I prefer not to use MS AJAX js lib, but if there is some pageLoad function, I will give it a try.
View Complete Post