Home > Error Calling > Error Calling The Calendar No Target Control Specified

Error Calling The Calendar No Target Control Specified

Here is the relevant table containing the form I'm using. I used an integer for the form instead of the form name and it works now. Member Login Remember Me Forgot your password? str_time : '').split(':'); if (!arr_time[0]) dt_date.setHours(0); else if (RE_NUM.exec(arr_time[0])) if (arr_time[0] < 24) dt_date.setHours(arr_time[0]); else return cal_error ("Invalid hours value: '" + arr_time[0] + "'.\nAllowed range is 00-23."); else return cal_error this contact form

Again when publishing from iCal it appears to work but the calendar isn't updated and the following is in the log... I am having the same problem. Yes, my password is: Forgot your password? Well, because var cal2 = new calendar2(document.forms['form1'].elements ['txtEndDate']); is not equal to var cal2 = new calendar2(ctl00_ContentPlaceHolder1_txtEndDate); The general syntax for accessing a form element is: document.forms[number].elements[number] So, to make that http://www.softcomplex.com/forum/viewthread_1906/

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Back to top #3 GreenUser GreenUser Advanced Member Members 50 posts Posted 25 June 2008 - 07:04 PM There is no error message anyway. Peter "Alexey Smirnov" <> wrote in message news:... In the regular aspx page I'm referring to the textbox like this: var cal2 = new calendar2(document.forms['form1'].elements['txtEndDate']); Obviously, this doesn't work in the Content page.

Still a bit strange to me why ctl00_ContentPlaceHolder1_txtEndDate didn't work. protected void Page_Load(object sender, EventArgs e) { TextBox1.Attributes.Add("onchange", TextBox1.ClientID + "OnChange();"); } other way: