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
 
LinkBack Thread Tools Display Modes
Old 01-08-2009, 02:45 PM   #1 (permalink)
v7n Mentor
 
Sketch's Avatar
 
Join Date: 05-06-04
Location: London, UK
Posts: 660
iTrader: 0 / 0%
Latest Blog:
None

Sketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web proSketch is a highly respected web pro
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.
Sketch is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-09-2009, 11:41 AM   #2 (permalink)
Member
 
Join Date: 01-02-09
Posts: 43
iTrader: 0 / 0%
Latest Blog:
None

Gamblor is liked by many
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.
__________________
C:\dos
C:\dos\run
run\dos\run
Gamblor is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-22-2009, 09:44 PM   #3 (permalink)
Junior Member
 
Join Date: 05-19-04
Posts: 12
iTrader: 0 / 0%
Latest Blog:
None

Jasber is liked by many
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.
Jasber is offline  
Add Post to del.icio.us
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
Trackbacks are On
Pingbacks are On
Refbacks are On


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 04:37 PM
PS Colour picker DaveyBoy Graphic Design Forum 2 11-16-2006 04:50 PM
Pixie Color Picker Jazzee Web Design Lobby 15 11-23-2003 11:50 AM


Sponsor Links
Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 07:22 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.