asp.net mvc - Running jquery script block with a MVC PartialView -
So I'm loading partial views using an AJAX action link, but some zype as part of a partial view Need to embed in which the return I'm getting harsh with, how to fire the script once it's over.
Use the callback Whatever jQuery function you use (.post, .get, ajax) are doing.
See this for:
$ Get (url, callbackFn); Add markup to the function callback FN (data) {// $ $ ('# some DIV'). Append (data) // js function here function functionPromaryView (); }
N.B. I make all JS files in different files. There is no need to embed JS inside partial scenes. Very easy and strong to keep logical division
Comments
Post a Comment