Basic Date Picker Forums

Welcome to Basic Date Picker Forums Sign in | Join | Help
in Search

DOM Javascript help

Last post 08-01-2006, 4:36 PM by geoffrey.mcgill. 2 replies.
Sort Posts: Previous Next
  •  07-28-2006, 11:59 AM 676

    DOM Javascript help

    Hi -

    I have an application where with a custom grid containing around 60 datepickers.  There are two BDPs per row <TR>, each of them in it's own cell <TD>.

    What I want is when the user selects the first one (start date), I want the end date to have the same date selected automatically.  I also want to stick with client-side scripting to avoid the annoying postback.

    I'm having trouble accessing the ID of the BDP, when I use the getControlId(), it just returns "basicDatePickerPopup".  Instead I want the ID like "Basicdatepicker5".

    This way I can access the end date control as it would be name "Basicdatepicker5a", and set the date accordingly.  Is there any way to get the element ID?  Or another soloution?

    Thanks,

    Chase

     

     

    *THANKS FOR THE RESPONSE!!

  •  08-01-2006, 10:26 AM 684 in reply to 676

    Re: DOM Javascript help

    Hi Chase,

    Sorry about the delay in responding to your post. Somehow we were not notified of the post. Community Server should have notified us via email and RSS, but neither happened. We're looking into what might be causing this.

    Anyways, We're creating a sample for you and should have ready shortly. Please stay tuned.

    Thanks,
    Geoffrey McGill
    ----------------------------------------
    Coolite Inc.
    Email: support [at] coolite [dot] com
    Phone: +1(888)775-5888
  •  08-01-2006, 4:36 PM 685 in reply to 676

    Re: DOM Javascript help

    Hi Chase,

    We published a new Sample which should help demonstrate a technique for updating an EndDate based on the StartDate. The Sample uses all Client-Side JavaScript to perform the updates.

    See http://samples.basicdatepicker.com/Update_DatePicker_EndDate.aspx

    The key is to use a standard naming convention for the StartDate/EndDate pair Control ID's.

    Hope this helps.

    Please feel free to contact us if you have any further questions or comments and we will do our best to help out.

    Thanks,
    Geoffrey McGill
    ----------------------------------------
    Coolite Inc.
    Email: support [at] coolite [dot] com
    Phone: +1(888)775-5888
View as RSS news feed in XML
 
Powered by Community Server, by Telligent Systems