Link to home
Start Free TrialLog in
Avatar of tikkanen
tikkanen

asked on

Date picker with javascript or php

I need a little calendar where user can choose the day in format dd-mm-yyyy.
Somekind of that there is  a link where open a calendar where user can choose the day.

I am not so good with javascript or php
Avatar of raja_ind82
raja_ind82
Flag of India image

<link rel="stylesheet" type="text/css" media="all" href="/scripts/skins/aqua/theme.css" title="Aqua" />
<!-- import the calendar script -->
<script type="text/javascript" src="/scripts/calendar_inc.js"></script>
<script type="text/javascript" src="/scripts/calendar.js"></script>
<!-- import the language module -->
<script type="text/javascript" src="/scripts/lang/calendar-en.js"></script>

<table><tr><td class="normaltext">      Date From:&nbsp;<input type="text" id="from_date" name="from_date" class="textboxsmall" value="<?php echo $todays_todate?>"><img  align="Center" src="../images/cal.JPG"  onclick="return showCalendar('from_date','%m/%d/%Y',false,false);" style="cursor:hand"></td></tr></table>

 give me your email id i will send the javascript file

Regards,
M.Raja
Avatar of tikkanen
tikkanen

ASKER

email id? my email address?
yes, that code need some javasriptfile and css file. i will send through email.. my email: raja_ind82@yahoo.com
Avatar of Michel Plungjan
upload them to ee-stuff.com - better for you and everybody else
Sorry, i don't know where to upload first, thanks for your help.

i have uploaded that files.
View all files for Question ID: 22391627
https://filedb.experts-exchange.com/incoming/ee-stuff/2504-javascript.zip 
Direct link to your file
https://filedb.experts-exchange.com/incoming/ee-stuff/2504-javascript.zip 

Please download that from there
Regards,
M.Raja

I dont see nothing. I dowlaoded these files, but i don't see nothin on my page. All files are in same direction.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

      <head>
            <meta http-equiv="content-type" content="text/html;charset=utf-8" />
            <meta name="generator" content="Adobe GoLive" />
            <title>Untitled Page</title>
                  <link rel="stylesheet" type="text/css" media="all" href="/skins/aqua/theme.css" title="Aqua" />
<!-- import the calendar script -->
<script type="text/javascript" src="calendar_inc.js"></script>
<script type="text/javascript" src="calendar.js"></script>
<!-- import the language module -->
<script type="text/javascript" src="calendar-en.js"></script>
      </head>

      <body>


<table><tr><td class="normaltext">      Date From:&nbsp;<input type="text" id="from_date" name="from_date" class="textboxsmall" value="<?php echo $todays_todate?>"><img  align="Center" src="cal.JPG"  onclick="return showCalendar('from_date','%m/%d/%Y',false,false);" style="cursor:hand"></td></tr></table>
      </body>

</html>
which browser you are using(check this in IE). did you get any script error?
did you get the calender model. when clicking that image. the same file working here.
you can change format for the date showCalendar('from_date','%d-%m-%Y',false,false)

Regards,
M.Raja
calendar.tt.def_date_format is not object
i got the point, Please put lang folder and opy that file(calendar-en.js) to that folder
ASKER CERTIFIED SOLUTION
Avatar of raja_ind82
raja_ind82
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial