473,387 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 1657
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.