codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  insert datepicker on each row  anvikon at 22:10 on Thursday, June 24, 2010
 

I want to show the datetimepicker on each row of a table

If I give the unique Id in the jsp page and js, the cursor still pointing to only prev textbox.


Here is the detail code:

the below is the html code



<html:text property="DateTime" size="18" styleClass="maincontent1" value="" /><a href="javascript:NewCssCal('DateTime','yyyymmdd','arrow',true,24,false);"><img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date"> </a>[/code]


For the above code I need to add a date picker for next row.


I did like below.



Var iarr = ā€˜Date Timeā€;

Count = 0;

oCell.innerHTML = "<input type='text' name='"+iarr+"' id='"+iarr+"' size='18' class='maincontent1' ><a href=javascript:NewCssCal(\"" +iarr+ "\",\"yyyymmdd\",\"arrow\",true,24,false)><img src='images/cal.gif' width='16' height='16' border='0'alt='Pick a date'> </a> ";



count = count+1;

iarr = iarr+ count;

oCell = newRow.insertCell();

With the above code the cursor control pointing to the previous.






Do you have any solution for this? Please let me know


thanks


  Re: insert datepicker on each row  kalish88 at 11:40 on Tuesday, August 31, 2010
 

"The Date Picker Control allows you to add a date picker that opens up within your existing browser window (in a layer) when you click an icon beside a text form field. The control allows you to select a date using a familiar calendar user interface, and it automatically inserts the date into your text field. The date selector allows you to choose dates either via the mouse or the keyboard. You can customize the first day of the week, the date ranges, etc. The software is released under the GNU General Public License."
===========================
[URl=http://www.aussie.com.au/insurance/life-insurance.htm]Insurance Life[/url] | [URl=http://www.aussie.com.au/insurance/life-insurance.htm]Life Insurance Company[/url]








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: need help creating mysql database for my java code
•  Water volume
•  Solr- New face of Search
•  Re: Insert Contents of .txt file into a .html page
•  Re: changing a forms value
•  Re: insert datepicker on each row
•  Re: Drop Down menu made viewable based on cookie
•  Re: Need Javascript Multiple sidebar menu with sliding effects
•  Re: IsDate() in JavaScript?


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010