PDA

View Full Version : Calendar Popup



a1v1n4
11-21-2008, 03:32 AM
Hi all,
I need a calendar popup for my web application. I've download the script but I have encounter a problem.

I need the button to be disabled if the textfield is empty. I tried two methods.

The 1st method: The disabled function worked, but the web direct me to the previous page after the popup, I have to click back to the page and select the date then it works. How can I resolved this?


<input name="cal" type="image" disabled value="cal" src="../Images/cal.gif" onClick = "javascript:New Cal('text1','ddmmyyyy',false,24)">

2nd Method: It works perfectly, but I couldn't disable it. From what I know, I cannot disable the img.


<img onClick ="javascript:New Cal('text1','ddmmyyyy',false,24)" src="../Images/cal.gif" width ="16" height ="16" >

Thank you in advance

jscheuer1
11-21-2008, 03:35 AM
What script?

a1v1n4
11-22-2008, 08:41 PM
The script that I used is from here:
http://www.dynamicdrive.com/dynamicindex6/popcalendar2.htm