Results 1 to 3 of 3

Thread: Calendar Popup

  1. #1
    Join Date
    Nov 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Calendar Popup

    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?

    Code:
    <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.

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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    What script?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The script that I used is from here:
    http://www.dynamicdrive.com/dynamici...pcalendar2.htm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •