?
Solved

Time picker

Posted on 2014-03-31
4
Medium Priority
?
486 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 2000 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

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

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

PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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)
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…
Suggested Courses

569 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