c# - JQuery causing postback in .NET -


i created adrotator in jquery first time , when use on page uses pagemethods ajax calls server , show modal. page posts back. when remove rotator page works should. in rotator have following code in document ready function.

    $(".animation_control a.play").live('click', function () {                 $(this).removeclass('play');         $(this).addclass('pause');         play();     });      $(".animation_control a.pause").live('click', function () {         $(this).removeclass('pause');         $(this).addclass('play');         clearinterval(timer);     });      $(".animation_control a.pause").click(function () {      });      //toggle teaser     $("a.collapse").click(function () {         $(".main_image .block").slidetoggle();         $("a.collapse").toggleclass("show");     }); 

if comment out code page stops complete page refresh , and posts async should. ideas on why cause page complete postback instead of partial one?

as guess, since code incomplete, should add return false event handlers prevent links firing.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -