Hi, I have a calendar form (PopUpCal.aspx) that I want to appear in a popup browser window. When I select a date from the calendar control, it returns the value to the textbox.
All is fine with this but if the textbox already has a date, I want the calendar to show with this date selected: therefore I need to pick up the value of the textbox (if it already has a value).
The code currently on my image that opens the pop-up is as follows:
<A onclick="window.open('PopupCal.aspx?textbox=tDate1','cal','width=205,height=185,left=270,top=180')" href="javascript:;">
the value tDate1 is the textbox where the value will be returned. It is picked up in teh vb.net code using Request.QueryString("textbox").ToString
I presume what I need is to call a javascript function that would give a string result of "DateValue = (the date in the textbox)". How do I do this in java?? I can use a HTML input rather than .net textbox if thats any easier.
ANy help would be greatly appreciated. THanks.
Dec.
All is fine with this but if the textbox already has a date, I want the calendar to show with this date selected: therefore I need to pick up the value of the textbox (if it already has a value).
The code currently on my image that opens the pop-up is as follows:
<A onclick="window.open('PopupCal.aspx?textbox=tDate1','cal','width=205,height=185,left=270,top=180')" href="javascript:;">
the value tDate1 is the textbox where the value will be returned. It is picked up in teh vb.net code using Request.QueryString("textbox").ToString
I presume what I need is to call a javascript function that would give a string result of "DateValue = (the date in the textbox)". How do I do this in java?? I can use a HTML input rather than .net textbox if thats any easier.
ANy help would be greatly appreciated. THanks.
Dec.