Hi,
I am kinda new to struts.Here is the problem:
I have a calendar(java script) control in the form: when I 
Click on the control, I want to populate a text field
With the date clicked. Please let me know which tag 
I can use to populate that text field.

The Code given under is not working:

<html:form action="/ActiveAlarm">
     <html:text property="fromId" size="14" />
      <script> 
       calendar2 = new dynCalendar('calendar2', 'calendar1Callback2');
       function calendar1Callback2(date, month, year)
        {
             
             document.forms['activeAlarm'].fromId.value = date + '/' +
month + '/' + year;
           
             
            
        }
      </script>
</html:form>

The function calendarCallback is the call back function I get from the
control.

Thanks
Vijay


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to