Solved

Time picker

Posted on 2014-03-31
4
467 Views
Last Modified: 2014-04-02
Hi,

I want to use this plugin Time Picker but, I am all confused of what file I have to include and
what I need to do to have this plugin time picker working on my page.

I need your help please.  

I attached a picture of the example, I want to use on my page.

this is the link that provide the example:

http://wearespaces.com/plugins/jquery-timepicker/


c

<script type="text/javascript" src="js/jquery-ui-timepicker-addon.js"></script>

<script language="javascript" type="text/javascript">
	$(document).ready(function () {

$('#slider_example_1').timepicker({
	hourGrid: 4,
	minuteGrid: 10,
	timeFormat: 'hh:mm tt'
});

});

</script>


/* css for timepicker */
.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
.ui-timepicker-div dl { text-align: left; }
.ui-timepicker-div dl dt { height: 25px; margin-bottom: -25px; }
.ui-timepicker-div dl dd { margin: 0 10px 10px 65px; }
.ui-timepicker-div td { font-size: 90%; }
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }

.ui-timepicker-rtl{ direction: rtl; }
.ui-timepicker-rtl dl { text-align: right; }
.ui-timepicker-rtl dl dd { margin: 0 65px 10px 10px; }




 <div>
<input type="text" name="slider_example_1" id="slider_example_1" value="" />
						</div>
	

Open in new window

0
Comment
Question by:lulu50
  • 2
  • 2
4 Comments
 
LVL 22

Expert Comment

by:Mrunal
ID: 39967102
Hi lulu50,
you need to include couple of javascript and css files.

These are listed below:

<link rel="stylesheet" media="all" type="text/css" href="http://code.jquery.com/ui/1.10.0/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" media="all" type="text/css" href="jquery-ui-timepicker-addon.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.0/jquery-ui.min.js"></script>
<script type="text/javascript" src="jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript" src="jquery-ui-sliderAccess.js"></script>

Open in new window


All these files you can easily get by:

right click on above link page you have given and just click save as...!

Hope this helps you.
0
 

Author Comment

by:lulu50
ID: 39967123
I don't see a download for these files?

Still confused
0
 
LVL 22

Accepted Solution

by:
Mrunal earned 500 total points
ID: 39968890
hi,
if you right click and select save as, in download window, select "WebPage Complete" as file type.

On destination path, one html page and and one folder will get downloaded.
In this folder, you can get all those javascript files (they may be inside some folder like style and scripts)

Hope this helps you.
0
 

Author Closing Comment

by:lulu50
ID: 39972304
Thank you
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now