Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 01-08-2009, 03:45 PM
Sketch's Avatar
Sketch Sketch is offline
v7n Mentor
 
Join Date: 05-06-04
Location: Melbourne, Australia
Posts: 663
iTrader: 0 / 0%
jQuery - Date Picker

I've jumped on board someone elses project and am having some issues.

They have used Smarty to build the site *Grrrr* and they have also use the Date Picker add-on for Jquery, I don't have an issue with this but I can't get the simplest bit of code to work and I don't understand why.

I have an input box

Code:
<input class="date pic text" id="date" name="date" style="width:auto" value="{$date|date_format:'%d/%m/%Y'}" />
And at the bottom of the template file I have a literal tag and the following javascript

Code:
$('#date').datepicker({ startDate:'01/01/2009', endDate:'01/01/2011' });
The code will create the date picker, but the start date and end date aren't working... It keeps the default of 1999 / 2019. Does anyone know why this isn't working?

I've also updated jquery & date picker to the latest versions.
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 01-09-2009, 12:41 PM
Gamblor Gamblor is offline
Member
 
Join Date: 01-02-09
Posts: 46
iTrader: 0 / 0%
Ive used the datepicker once before but Im not too great with javascript. The only thing I can think of is that you might need

Quote:
$(function() {
$('#date').datepicker({
startDate:'01/01/2009',
endDate:'01/01/2011'
});
});
I know jquery has some weird thing with the way it initializes the function so you dont have to actually type function but could be something weird like that.
 
Reply With Quote
  #3  
Old 01-22-2009, 10:44 PM
Jasber Jasber is offline
Junior Member
 
Join Date: 05-19-04
Posts: 13
iTrader: 0 / 0%
Which date picker is it?

Make sure the start and end date are in the right format. So m/d/y instead of d/m/y or something.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
my contact form isnt sending all avriables through to the email. (jquery/ajax/php) sambkk Coding Forum 1 10-28-2008 12:14 AM
google Adsense colour picker Sabeur Contextual Networks 3 01-07-2007 05:37 PM
PS Colour picker DaveyBoy Graphic Design Forum 2 11-16-2006 05:50 PM
Pixie Color Picker Jazzee Web Design Lobby 15 11-23-2003 12:50 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 11:02 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC