|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
In the toolbox for webform is there a datepicker? I can find one for a window form but not for a web form Does one exist or does micrsoft not support it for web forms? Or must one rely on dropdown boxes for Month Day and Year?
|
|
#2
|
|||
|
|||
|
Best Date Picker Around
If you know any javascript and html here is the best date picker around...
I use this everywhere...I don't take the credit for creating it, but the creator is in the code. Just copy the code to a folder called datapicker on your server and follow the example.asp page for inserting HTML into any web page you want on your server for the date picker to work...
__________________
Moojjoo |
|
#3
|
|||
|
|||
|
Example in action
|
|
#4
|
||||
|
||||
|
Wow! That picker is a pearler moojjoo. I've recently needed a date picker on two seperate projects. I'll be using this one now!
|
|
#5
|
|||
|
|||
|
Datepicker is great on one field but how is it possible to make it work in the same form for 2 different input fields?
I have "arrival" and "departure" and I have tried many times..together is not working..Thanks for any help ema ![]() |
|
#6
|
|||
|
|||
|
Use one calendaricon for each field, then use this code (I have done it this way):
Arrival: PHP Code:
Departure: PHP Code:
I also use <a href="javascript:"> before the img just to make the cursor change also. By the way, why does this forum separate javascript into two words when I write it inside a code. I wrote it in one word. |
|
#7
|
||||
|
||||
|
Couldn't get that one to work in Mozilla, for whatever that's worth. I clicked and clicked on the little icon, but nothing happened.
|
|
#8
|
|||
|
|||
|
Thanks
Your suggest was perfect,thank you!
Can I please ask you one more thing? After I insert a date by datapicker,I pass all variables to an overcheck form,such as < %Response write arrivo%>,before insert into the database,to avoid mistakes Unfortunately instead of date I get // which calls the javascript.. Any idea how to get printed the value made by the javascript? Ciaoo ![]() |
|
#9
|
|||
|
|||
|
Quote:
I'm not sure what you mean with this, but perhaps it's the / that causes the trouble. Personally I write dates in this format; yyyy-mm-dd because I use a Access database, and Access doesn't love date's submitted in the format dd-mm-yyyy. I see that you are using ASP, if you wan't to I can drop you my coding to make the date be written like this: yyyy-mm-dd. Last edited by EiSa : July 5th, 2004 at 05:43 PM. |
|
#10
|
|||
|
|||
|
Thanks for reply,
More than date format problem is just print at video the selected date.For example.I'm using a javascript to hide "mailto:" to spammers. <a href="javascript://"onClick="sendmail('info@anticopozzo.com');return false">info@anticopozzo.com</a> If I select the mail link,show "javascript://" This exactly happens with my form,I can not get any date or number in the overcheck form but // ,they just don't pass throught If i digit a date manually,date pass throught to the next form,ready to be inserted in db access.. Hope you undertand my bad english Ciaoo ema |
|
#11
|
|||
|
|||
|
Is this script cross-browser compatible? I couldn't get it to work in Mozilla either...
![]() |
|
#12
|
|||
|
|||
|
Don't think so. Work's in IE and Opera, but not in Netscrape.
|
|
#13
|
|||
|
|||
|
I got it to work in Mozilla 1.4 by using the form name instead of "all" in the onclick:
IE only: Code:
onClick="popUpCalendar(this, document.all.arrival, 'dd/mm/yyyy', 0, 0)" IE 6 and Mozilla (and probably IE 5.0+, haven't tested it) Code:
onClick="popUpCalendar(this, myFormName.arrival, 'dd/mm/yyyy', 0, 0)" What a nice script! |
|
#14
|
|||
|
|||
|
I am having issues. Keeps telling me the Calendar object is not defined.
Anybody else run into this issue? |
|
#15
|
||||
|
||||
|
This little calendar looks awesome! Too bad its not cross-browser compatible (minor tweaks)...
joyal422, what version browser are you running? |
|
#16
|
|||
|
|||
|
WHy dont u add an ID to the text field and refrence it by "getElementByID('id')" method.
It seems to work after that ! eg: <input type="text" id="Arrival" name="Arrive" value=""> <img src="images/calendaricon.gif" height="17" width="17" border=0 onClick="popUpCalendar(this, document.getElementById('Arrival'), 'm-dd-yyyy', 0, 0)"> does it work now ?!?...lemme know. |
|
#17
|
|||
|
|||
|
Quote:
|