Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > datalist edit mode and javascript pop up calendar

Reply
Thread Tools

datalist edit mode and javascript pop up calendar

 
 
Ravikanth[MVP]
Guest
Posts: n/a
 
      07-18-2003
Hi

Check whether textbox control name is 'txtDischargeDate'
or it contains automatically generated id?

HTH
Ravikanth


>-----Original Message-----
>Dear ASP.NET Programmers,
>
>I am using a javascript to display popup calendar and

return the selected
>date to the control in the calling form. No problems

here. When I use this
>script for a control that is created in datalist edit

mode, the popup
>calendar doesn't return the date because it cannot find

the control (or I
>think so). Is there any way to work around this? I use

the following code:
>
><script language="Javascript">
> function GetDate(ctrlName)
> {
> childWindow = window.open('popup.aspx?formName=' +
> document.forms[0].name + '&ctrlName=' +

ctrlName, "PopUpCalendar",
> "width=350, height=230, top=200, left=200,

toolbars=no, scrollbars=no,
>status=no, resizable=no");
> }
>
> function CloseWindow()
> {
> childWindow.close()
> }
> </script>
> <script language="JavaScript">
>
><A href="javascript:GetDate('txtDischargeDate')"><IMG
>src="images/smallcalendar.gif" border="0"></A>
>
>Thanks in advance,
>
>Buran
>
>
>.
>

 
Reply With Quote
 
 
 
 
buran
Guest
Posts: n/a
 
      07-18-2003
The control name is 'txtDischargeDate' and it is automatically created when
in edit mode. How can I reference it in Javascript?

Buran

"Ravikanth[MVP]" <> wrote in message
news:04ef01c34d14$906ea1c0$...
> Hi
>
> Check whether textbox control name is 'txtDischargeDate'
> or it contains automatically generated id?
>
> HTH
> Ravikanth
>
>
> >-----Original Message-----
> >Dear ASP.NET Programmers,
> >
> >I am using a javascript to display popup calendar and

> return the selected
> >date to the control in the calling form. No problems

> here. When I use this
> >script for a control that is created in datalist edit

> mode, the popup
> >calendar doesn't return the date because it cannot find

> the control (or I
> >think so). Is there any way to work around this? I use

> the following code:
> >
> ><script language="Javascript">
> > function GetDate(ctrlName)
> > {
> > childWindow = window.open('popup.aspx?formName=' +
> > document.forms[0].name + '&ctrlName=' +

> ctrlName, "PopUpCalendar",
> > "width=350, height=230, top=200, left=200,

> toolbars=no, scrollbars=no,
> >status=no, resizable=no");
> > }
> >
> > function CloseWindow()
> > {
> > childWindow.close()
> > }
> > </script>
> > <script language="JavaScript">
> >
> ><A href="javascript:GetDate('txtDischargeDate')"><IMG
> >src="images/smallcalendar.gif" border="0"></A>
> >
> >Thanks in advance,
> >
> >Buran
> >
> >
> >.
> >



 
Reply With Quote
 
 
 
 
buran
Guest
Posts: n/a
 
      07-22-2003
The control name is txtDischargeDate. No problems there. Any suggestions?

Buran

"Ravikanth[MVP]" <> wrote in message
news:04ef01c34d14$906ea1c0$...
> Hi
>
> Check whether textbox control name is 'txtDischargeDate'
> or it contains automatically generated id?
>
> HTH
> Ravikanth
>
>
> >-----Original Message-----
> >Dear ASP.NET Programmers,
> >
> >I am using a javascript to display popup calendar and

> return the selected
> >date to the control in the calling form. No problems

> here. When I use this
> >script for a control that is created in datalist edit

> mode, the popup
> >calendar doesn't return the date because it cannot find

> the control (or I
> >think so). Is there any way to work around this? I use

> the following code:
> >
> ><script language="Javascript">
> > function GetDate(ctrlName)
> > {
> > childWindow = window.open('popup.aspx?formName=' +
> > document.forms[0].name + '&ctrlName=' +

> ctrlName, "PopUpCalendar",
> > "width=350, height=230, top=200, left=200,

> toolbars=no, scrollbars=no,
> >status=no, resizable=no");
> > }
> >
> > function CloseWindow()
> > {
> > childWindow.close()
> > }
> > </script>
> > <script language="JavaScript">
> >
> ><A href="javascript:GetDate('txtDischargeDate')"><IMG
> >src="images/smallcalendar.gif" border="0"></A>
> >
> >Thanks in advance,
> >
> >Buran
> >
> >
> >.
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Snapshot restraint - edit, edit, edit Alan Browne Digital Photography 24 05-10-2005 10:15 PM
Snapshot restraint - edit, edit, edit Patrick Digital Photography 0 05-06-2005 10:53 PM
Setting up a datalist control - Item_DataBound for a datalist in a datalist Nevyn Twyll ASP .Net 8 09-09-2004 10:13 PM
pop-up windows in edit mode Ravi Gudlavalleti ASP .Net Datagrid Control 1 06-23-2004 10:24 AM
Re: datalist edit mode and javascript pop up calendar Saravana ASP .Net 2 07-25-2003 12:02 PM



Advertisments