472,784 Members | 1,239 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,784 software developers and data experts.

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 1634
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Gilles T. | last post by:
How I can get element ID in the edit mode of datagrid control? If I not in the edit mode, there are no problem. <asp:TemplateColumn ItemStyle-CssClass="grid_column_width_3"...
5
by: Dieter Depuydt | last post by:
Hi All, Is is possibible to put all records in a Datagrid in Edit Mode. So my users, can chose a record, put the cursor in the first field of the record, edit it, and just click on 'Save' ? ...
6
by: Mark | last post by:
I have been working for quite some time on this issue which in theory should be quite simple. The problem is that the Cancel and Save events are not fired when their respective buttons are...
0
by: mike | last post by:
Hi there: I've read an excellent "how to"-article by Microsoft (no. 306227) - partly cited cited at the end of this email). I have implemented the code related to the part "How to Add a...
2
by: Sky | last post by:
Hello: Another question about trying to wring functionality from a DataGrid... Have a DB table of "Contacts" -- 14 or more fields per record Show in datagrid -- but only 5 columns (First,Last,...
0
by: Steve | last post by:
I have a datagrid that is created at run time DataGrid dgG = new DataGrid(); BoundColumn bcB; dgG.CellPadding = 5; dgG.CellSpacing = 0; dgG.GridLines = GridLines.Both; dgG.CssClass =...
3
by: louise raisbeck | last post by:
Hi, I have been on this for hours and just cannot work it out. I have a datagrid. I set the edititem index to a row to edit, that works. However if i want to put a value into this textbox it wont...
0
by: Chris | last post by:
I've been searching all over and think I am close, but keep getting the error "Index out of range" when trying to reference a nested datagrid when an OnEditCommand event is raised. When the...
2
by: Peted | last post by:
Hi i have a winforms app in vs2008 c# i have a billingdatagrid on the form, and is shows 4 columns and many rows of data. The far left colum shows an arrow to inidcated the currently...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.