saseow
Posts: 744
|
Posted: 02/10/2009, 5:12 AM |
|
I have looked for an unobtrusive time picker for some time and finally found one at:
http://www.oakcitygraphics.com/jquery/clockpick/trunk/ClockPick.cfm
It is extremely easy to install into CCS and works very well.
Trevor
|
|
|
jjrjr1
Posts: 942
|
Posted: 02/13/2009, 8:18 AM |
|
Thanks for this
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
|
|
saseow
Posts: 744
|
Posted: 02/13/2009, 8:26 AM |
|
You are welcome. All you have to do is the html add a few lines:
<meta name="GENERATOR" content="CodeCharge Studio 4.1.00.032">
<script src="./jtime/jquery-1.3.1.min.js"></script>
<script src="./jtime/jquery.clockpick.js"></script>
<link rel="stylesheet" type="text/css" href="./jtime/clockpick.css">
and then:
<script language="JavaScript" type="text/javascript">
$(document).ready(function() {
function cback( time ) {
}
$("select").not("#test").change(function() {
binder();
});
function binder() {
var opts = {};
$("select").not("#test").each(function() {
opts[this.id] = this.id == 'event' || this.id == 'layout'
? $(this).val()
: eval( $(this).val() );
});
$("#work_detailstart_time").unbind().clockpick(opts, cback);
$("#work_detailend_time").unbind().clockpick(opts, cback);
}
binder();
});
//Begin CCS script
Obviously the control names may be different. I am using this all the time now.
|
|
|
ckroon
Posts: 869
|
Posted: 02/15/2009, 3:58 PM |
|
Awesome! Great time picker
_________________
Walter Kempees...you are dearly missed. |
|
|
marcwolf
Posts: 361
|
Posted: 02/15/2009, 5:50 PM |
|
Thanks for that
Thats a very neat way of getting the time :>
Take care
Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
|
|
|