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 slider with variable width elements -


is possible create jquery slider in elements have variable width (i.e. not elements have same width) ?

if so, how do ? hannit

to set width of jquery slider wrap in div , style using css. can reference child elements through css style well, has done using jquery after have been rendered.

example:

<script type="text/javascript">    $(document).ready(function(){       //render sliders       $(".oslider").slider({          value: 12,          min: 8,          max: 24,          step: 1       });       //size each handle according class       $(".narrow-handle .ui-slider-handle").css("width","10px");       $(".wide-handle .ui-slider-handle").css("width","50px");    }); </script> <style type="text/css">    /* define width sliders styling wrapping div */    .oslidercontainer { width:100px; }    .oslidercontainer2 { width:200px; } </style>  <div class="oslidercontainer"><div class="oslider narrow-handle"></div></div> <div class="oslidercontainer2"><div class="oslider wide-handle"></div></div> 

i hope answers question, luck!


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 -