Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

jquery slow when using children() with rows -


recently asked question on regarding changing row background color on click , hover using jquery. below link it, , implemented solution marked answer. problem when having lot of rows, hover click takes lot of time. using ie8 latest version of jquery. below link question

jquery row hover , click events

here code implemented:

http://jsfiddle.net/epurh/

if hover , click, working , fast less rows, if there lot of rows/columns, gets slow , throws error if want stop script. when compare same in firefox, fast. have problem in ie8. can 1 suggest workaround this?

in click handler, add class <tr> clicked when comes time remove class on .children(), can target specific row.

  $(".simplehighlight").click(function() {         $(this).addclass('wasclicked').children().addclass('clicked');             // sibling <tr> class "wasclicked"            //   , remove class, , "clicked" class  children         $(this).siblings('.wasclicked').removeclass('wasclicked')                                        .children().removeclass('clicked');   }); 

Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -