how can i kill javascript process or stop of all functions further execution -



how can i kill javascript process or stop of all functions further execution -

i using asp.net ajax toolkit accordion panel . if user click on header want hide pane instead of collapse or expand . write next method in javascript .

<script type="text/javascript"> function courtcase() { //var = document.getelementbyid("accourtcases"); // var = document.getelementbyid('<%= accourtcases.clientid %>') //var _accordion = //document.getelementbyid('<%= ctrlcontainer.clientid%>').accordionbehavior.set_selectedindex(1).hide(); // expand panel nr.3 alert('rahul'); document.getelementbyid('<%= ctrlcontainer.clientid%>').accordionbehavior.get_pane(0).content.style.display = 'none'; document.getelementbyid('<%= ctrlcontainer.clientid%>').accordionbehavior.get_pane(0).header.style.display = 'none'; alert('rahul'); //alert(_accordion); // throw "stop execution"; homecoming true; } </script>

its works me . problem after function , ajax phone call accordion , 1 time again expand or collapse pane. , starting visible.

1) seek override default events void ajax calls (example: replace onclick event empty function 2) seek hide accordian using css

javascript

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -