asp.net ajax - Access the caller DOM-object from the OnBegin function from AjaxAction -


problem: access dom-object called ajaxaction in onbegin function. here 1 solution: question parameters in onbegin ajaxoptions there cleaner way access it?

examples these not work:

function begincontactlist(args) { // onbegin     // highlight selected group     $('#leftcolumn li').removeclass('selected');     $(this).parent().addclass('selected');      // animate     $('#tabs-1').fadeout('normal'); } 

because this object not contain information dom.

checkout answer question, there talk automatically inject additional parameters ajax context:
asp.net mvc : ajax actionlink- target html attribute


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -