all groups > asp.net building controls > january 2004 >
You're in the

asp.net building controls

group:

Need help with Datagrid Control in edit mode and Javascript


Need help with Datagrid Control in edit mode and Javascript Gilles T.
1/4/2004 7:43:18 PM
asp.net building controls:
I have calendar control in Javascript including in the Head of mu page:
<script charset="iso-8859-1" language="JavaScript"
src="popcalendar.js"></script>

I call this calendar popup with a image link button and working very good:
<asp:Textbox CssClass="edit_item" id="txtEditDernieresResolutions"
runat="server" width="80"/>
<a href='javascript:showCalendar(frmForm.imgDernieresResolutions,
document.getElementById("txtEditDernieresResolutions"),
"yyyy-mm-dd","",1,750)'>
<img src="images/cal.gif" name="imgDernieresResolutions" width="16"
height="16" border="0" align="middle">
</a>

Under this Textbox control in the same page, I have a Datagrid control.
When entering in edit mode of this datagrid control, my calendar above don't
working. I have a Javascrip error at this line in the popcalendar.js source:
crossobj=(dom)?document.getElementById('calendar').style : ie?
document.all.calendar : document.calendar;

Why javascrip calendar not working when my datagrid control is in edit mode?
I don't understand.
Please help me!

Thanks

Re: Need help with Datagrid Control in edit mode and Javascript Alvin Bruney
1/16/2004 10:30:10 PM
did you get help with this?

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/3he3b
[quoted text, click to view]

AddThis Social Bookmark Button