470,586 Members | 1,438 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,586 developers. It's quick & easy.

Need help with Datagrid Control in edit mode and Javascript

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.imgDernieres Resolutions,
document.getElementById("txtEditDernieresResolutio ns"),
"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
Nov 18 '05 #1
1 1564
did you get help with this?

--
Regards,
Alvin Bruney
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Gilles T." <gi************@hotmail.com> wrote in message
news:q1*********************@news.easynews.com...
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.imgDernieres Resolutions,
document.getElementById("txtEditDernieresResolutio ns"),
"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

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Dieter Depuydt | last post: by
6 posts views Thread by Mark | last post: by
reply views Thread by mike | last post: by
reply views Thread by Steve | last post: by
3 posts views Thread by louise raisbeck | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.