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:
  CLICK ON ROW AND CHECK The CHECKBOX  jayhoonova at 15:56 on Thursday, April 21, 2005
 

Hi there
I have a form which dynamicly creating with php. Because of that every checkbox name is same like name='ids[]'
Is it possible to check the checkbox when I click on the row which contains the checkbox... I m giving you the html form code below

<table width="90%" align="center" bgcolor="#FFDBB7" cellpadding="2" cellspacing="0" class="line">
<form name=rlist method=POST action=/NUMUNE/hasta_rapor.php?i=rprdty&TUP_ID=FORM>
<tr class=kalin align="LEFT" bgcolor="#F2F2F2" height=30>
<td class=line_left2 valign=middle >
<span class=yazi1> MYTABLE</span></td>
<td class=line_left2 valign=middle > </td>
<td class=line_right2 colspan=5 align=right>Tüm Testleri Göstermektedir.
</td>
</tr>
<tr class=kalin align="center">
<td class=line_top>Laba Teslim Tarihi </td>
<td colspan="6" class=line_top>Durum
<input type=checkbox value=" + " onClick="this.value=check(this.form.rbox)" class="checkall">   </td>
</tr><tr align="center" bgcolor='#FFE8DD' onmouseover="this.style.backgroundColor='#F2F2F2';" onMouseout="this.style.backgroundColor='#FFE8DD';"onDblclick="location.href='?i=rprdty&TUP_ID=1864024&F_TYPE=rp';" >
<td align=left nowrap>DATA 1 </td>
<td colspan="6" class=line_left> <input name='idler[]' id='rbox' type=checkbox value='1864024' class=chckbox1>
</td>
</tr><tr align="center" bgcolor='#FFDBB7' onmouseover="this.style.backgroundColor='#F2F2F2';" onMouseout="this.style.backgroundColor='#FFDBB7';"onDblclick="location.href='?i=rprdty&TUP_ID=1867617&F_TYPE=rp';" >
<td align=left nowrap>DATA 2 </td>
<td colspan="6" class=line_left> <input name='idler[]' id='rbox' type=checkbox value='1867617' class=chckbox1>
</td>
</tr>
<tr bgcolor=#F2F2F2 align=CENTER>
<td colspan=8 class=line_bottom><a href='javascript:document.rlist.submit();'>Click To Submit</a></td>
</tr></form></table>


As you see here I have a table. I am changing row color when mouse over on it. I also want to check the checkbox when I click on it.
So If I can do this I won' t need
onDblclick="location.href='?i=rprdty&TUP_ID=1867617&F_TYPE=rp';
code anymore to submit like this ( GET )...

Thanx To Everyone whoever replied...

  Need some help  freeveni at 07:05 on Sunday, April 24, 2005
 

Hi my name is Venhar and I just need some help from you??
I want ot ask you that from which program are these code.

Please help me .




Best Regards

  Re: CLICK ON ROW AND CHECK The CHECKBOX  jayhoonova at 22:38 on Sunday, April 24, 2005
 

Hi...
I have written these code with Zend Developer but it' s just a tool like notepad... If you have no idea about coding you can use DREAMWEAVER or ADOBE GOLIVE. You can check w3schools.com for some coding tips to start...










CodeToad Experts

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








Recent Forum Threads
•  Re: email with image
•  Re: Windows Authentication using LDAP get user first name
•  Two dimentional array - Dropdown box
•  Mcrypt problem
•  datagrid - paging - print data from particular page
•  How to reorder or Re arrange the node in XSL Using ASP and VBScript
•  Multiple rows from form into XML?
•  Dhtml menu, submenu losing focus. I`m so close!
•  Re: CLICK ON ROW AND CHECK The CHECKBOX


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005