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.

drag and drop - javascript mouseover while dragging -


i'm trying implement drag , drop script , have hit wall 1 problem. when take item , start dragging - item directly below cursor , onmouseover event fired on items below. want other items highlight when drag on them. 1 of solutions not drag @ - way mouse events work, ugly. has ever done , know how overcome problem?

if you're thinking suggesting jquery plugin or - please don't. don't need completed solution, educational.

imo, in order have mouseover event fired binding mouseover event parent element of affected elements, or perhaps document itself, since events bubbled up, elements can fire mouseover events.

then further, write hit method in mouseover event , actively check position of mouse cursor, see whether it's going under target element's boundary. tradeoff in usability , performance. choose.

my 2cents.

or perhaps, can reverse engineer jquery ui see how implement drag element. haven't check thou, think there should wiser way.


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 -