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 gradescales values -


i using jquery ui slider.here want gradescales in image jquery-ui-slider...how modify script?

alt text

how in script?

 <script src="../../scripts/jquery.ui.core.js" type="text/javascript"></script> <script src="../../scripts/jquery.ui.widget.js" type="text/javascript"></script> <script src="../../scripts/jquery.ui.mouse.js" type="text/javascript"></script> <script src="../../scripts/jquery.ui.slider.js" type="text/javascript"></script> <script type="text/javascript">     $(function () {         $("#slider").slider();     }); </script> 

html:

<div id="wrap">    <div id="slider"></div>    <div id="slider-text">        <div id="0">zero</div>        <div id="1">one</div>        <div id="2">two</div>        <div id="3">three</div>    </div> </div> 

javascript/jquery:

$( "#slider" ).slider({   value: 0,   min: 0,   max: 3,   step: 1 });  $('#1').css('left','32.3333%'); $('#2').css('left','64.6666%'); $('#3').css('left','93.9999%'); 

css:

#slider-text div{     float: left;     position: absolute; } 

working example: http://jsfiddle.net/a8l8c/

probably need adapt divs left property desire text (poor, good, good, excellent). happy codding!


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 -