CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 Very easy and simple Time Picker

Print topic Send  topic

Author Message
saseow

Posts: 651
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
View profile  Send private message
jjrjr1


Posts: 942
Posted: 02/13/2009, 8:18 AM

Thanks for this

_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
View profile  Send private message
saseow

Posts: 651
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.
View profile  Send private message
ckroon

Posts: 845
Posted: 02/15/2009, 3:58 PM

Awesome! Great time picker
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
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!!!!!!!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.