Need help with Datagrid Control in edit mode and Javascript

G

Gilles T.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top