Solved

Time picker

Posted on 2014-03-31
4
463 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

760 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

25 Experts available now in Live!

Get 1:1 Help Now