Click here to Skip to main content
16,006,749 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Refresh Div content Pin
Shantanu Gupta 133731-Jul-10 19:34
Shantanu Gupta 133731-Jul-10 19:34 
GeneralRe: Refresh Div content [modified] Pin
daveyerwin1-Aug-10 3:15
daveyerwin1-Aug-10 3:15 
QuestionDisplay image on refresh with link Pin
Dave McCool30-Jul-10 14:39
Dave McCool30-Jul-10 14:39 
AnswerRe: Display image on refresh with link [modified] Pin
daveyerwin30-Jul-10 17:47
daveyerwin30-Jul-10 17:47 
Questionvalidation using jscript Pin
Thanusree Duth29-Jul-10 18:48
Thanusree Duth29-Jul-10 18:48 
Answer[Cross-Post] validation using jscript Pin
Sandeep Mewara29-Jul-10 19:17
mveSandeep Mewara29-Jul-10 19:17 
GeneralRe: [Cross-Post] validation using jscript Pin
Thanusree Duth29-Jul-10 19:20
Thanusree Duth29-Jul-10 19:20 
Questionvalidation Pin
Thanusree Duth29-Jul-10 17:43
Thanusree Duth29-Jul-10 17:43 
I have a ajax tool calendarExtendarFromDate,imgFromDate,textBoxFromDate,calendarExtendarToDate,imgToDate and textBoxToDate,When a date is selected from calendarExtendarFromDate,that date is displayed in textBoxFromDate.Likewise in the case of calendarExtendarToDate.Here is the source code:
--------------------------------------------------------------
<asp:UpdatePanel ID="UpdatePanel1" runat="server"> <asp:TextBox ID="txtFromDate" runat="server" ReadOnly="True"> <img id="imgFromDate" runat="server" src="~/images/calendar.png" alt="~/images/calendar.png"/>
<cc1:CalendarExtender ID="CalendarExtenderFromDate" runat="server" CssClass="cal" TargetControlID="txtFromDate" PopupButtonID="imgFromDate"/> </cc1:CalendarExtender
<asp:TextBox ID="txtToDate" runat="server" ReadOnly="True" Enabled="False"<img id="imgToDate" runat="server" src="~/images/calendar.png" alt="~/images/calendar.png"/> <cc1:CalendarExtender ID="CalendarExtenderToDate" runat="server" OnClientDateSelectionChanged="CheckForFutureDate" CssClass="cal" TargetControlID="txtToDate"PopupButtonID="imgToDate"/>
-------------------------------------------------------------

I have radiobuttons..When the radiobutton between is clicked,then only calendarExtendarToDate is enabled.otherwise it becomes in disabled state..I wrote code in jscript as below:
function validate()
{
document.getElementById("imgToDate").disabled=false;
document.getElementById("txtToDate").disabled=false;
}
//call this function in .aspx.cs as below:
rbBetween.Attributes.Add("onClick", "return validate()");

textbox is disabled.When between radio is clicked,then only enabled.But calendarextendar disabled didnt work.Pls help me...
Answer[Cross-Post] validation Pin
Sandeep Mewara29-Jul-10 19:16
mveSandeep Mewara29-Jul-10 19:16 
QuestionWell, soneone's gotta go first... Pin
NeverHeardOfMe22-Jul-10 9:14
NeverHeardOfMe22-Jul-10 9:14 
AnswerRe: Well, soneone's gotta go first... [modified] Pin
daveyerwin22-Jul-10 12:33
daveyerwin22-Jul-10 12:33 
GeneralRe: Well, soneone's gotta go first... [modified] Pin
NeverHeardOfMe22-Jul-10 12:45
NeverHeardOfMe22-Jul-10 12:45 
GeneralRe: Well, soneone's gotta go first... Pin
daveyerwin22-Jul-10 13:01
daveyerwin22-Jul-10 13:01 
AnswerRe: Well, soneone's gotta go first... Pin
mmagill04-Aug-10 6:57
mmagill04-Aug-10 6:57 
GeneralRe: Well, soneone's gotta go first... Pin
NeverHeardOfMe4-Aug-10 7:43
NeverHeardOfMe4-Aug-10 7:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.