User Profile

Collapse

Profile Sidebar

Collapse
akshay01
akshay01
Last Activity: Jun 12 '08, 05:00 AM
Joined: May 22 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to access the value of checked radio button in group??

    Hi all,
    I am using the following code to create the radio button group in which i have a while loop which will create the radio buttons with same name and different values.
    Code:
    while(rs.next()){
    <INPUT TYPE="radio" NAME="RadioValues" VALUE="A"+no_of_elements>
    }
    here "no_of_elements " is an interger value..
    Does anyone knows how to get the value of the...
    See more | Go to post
    Last edited by acoder; Jun 5 '08, 11:17 AM. Reason: Moved to Java forum

  • akshay01
    started a topic How to store DB value into a Variable ???
    in Java

    How to store DB value into a Variable ???

    Hi all,
    Does anyone know how to store the value retrieved from
    Code:
     PreparedStatement preparedstatement=connection.prepareStatement("select MAX(TOKEN_ID)from DB_TEMP");
    into a variable, so that i can use it in my jsp code??


    Thanks in Advance!
    Akshay
    See more | Go to post

  • Sorry for not replying you hsriat !! your solution was fine and i implemented the same.. and it is working fine .
    By mistake i have posted the wrong code ..
    the line 12 and 17 are as;
    Code:
    arr_TextVal[i]  = "Hid"+i;
    
    <td><input type=hidden name=<%=arr_TextVal[i]%> value=""></td>
    Thanks for your reply !
    sorry once again
    See more | Go to post

    Leave a comment:


  • How to pass an array as a value of hidden varialble ??

    Hi All,
    I am using the following code in which i am creating some textboxes and and as the for loop continues the name of the textboxes will also be unique for all the textboxes.
    now i want to store the textbox values into some array and want to pass the array as an value of hidden variable

    Code:
    <% 
    int i =0;
    
    String[] arr_TextValues = new String[10];
    String[] arr_ChkValues = new String[10];
    ...
    See more | Go to post

  • How to pass the value of variable in javascript????

    Hi all,
    I have to pass the variable value in my javascript code, does anyone know how to do this ?
    The code is as-
    Code:
    
    for(l=0;l<no_of_row;l++)
             
    {
    var txt="Text"+l; 
    var chk="Chk"+l; 
                     
    var checkbox = eval("document.form1."+chk+".value");
    ...
    See more | Go to post

    Leave a comment:


  • hi Hsriat,
    Thanks for your reply !!
    Below is the source code:
    Code:
      <HTML>
      <HEAD>
    
        	<!-- Comments : To include style sheet </link> tag is used -->
        	<link rel="stylesheet" type="text/css" href="commonstyle.css" >
    
    	
      	<TITLE> report </TITLE>
      <script language=javascript>
    ...
    See more | Go to post

    Leave a comment:


  • How to pass the variable value in document.form1. chk.checked

    Hi all,
    I have to pass the value of a variable into the following code :-

    Code:
    function check()
        
        { 
       
               no_of_row = document.form1.dev.value 
              
              //  alert(no_of_row);
              
               for(l=0;l<no_of_row;l++)
               
              {
    ...
    See more | Go to post

    Leave a comment:


  • Hi a have come up with the following code :
    i am now storing the name value of checkbox into a variable and passing it in
    Code:
    document.form1.chk.checked ==true
    but it is not taking the value of var . could you please tell me how to do this ?

    Code:
    function check()
       
        { 
     
               no_of_row = document.form1.dev.value 
              
              //  alert(no_of_row);
    ...
    See more | Go to post

    Leave a comment:


  • Thanks again!
    The complication in my code is that when i fetch rows i am associating a checkbok and textbox with every row ..
    now to access the data of the text box whic i enter manually i have to assign unique names to both checkbok and textbox.
    please have a look into the code .

    in this code i have to fetch the value of the text box if its corresponding checkbox is checked.



    ...
    See more | Go to post

    Leave a comment:


  • Thanks for your reply !

    The problem is still not solved, it is giving me some error

    'document.form1 .elements[...].checked' is nill or not an object

    Code:
    function check()
        
        { 
            no_of_row = document.form1.dev.value 
                             
              for(l=0;l<no_of_row;l++)
              
              {
           	if(document.form1.elements["Chk"+l].checked
    ...
    See more | Go to post

    Leave a comment:


  • How to pass the value of i ????

    Hi all,
    I have to check the value of the 10 checkboxes using javascript, does anyone khow how to do this ?? i am using the code :

    Code:
    function check()
        { 
             for(i=0;i< 10 ;i++){
            
        	if(document.form1.chki.checked ==true)
        	{
        	  alert("hi");
                    }
       }
    
    }
    ...
    See more | Go to post

    Leave a comment:


  • akshay01
    started a topic How to pass the checkbox value in javascript

    How to pass the checkbox value in javascript

    Hi all,
    I am retrieving some rows from DataBase using for loop in jsp and displaying it in a table format.In the output table I am also adding one more text box and checkbok with each row. In text box i have to enter some value manually and when i check its corresponding checkbox the value should get passes into another jsp.
    This is a code by which i am assigning the name to textboxes and checkboxes
    Code:
    String[] arr_TextValues =
    ...
    See more | Go to post
No activity results to display
Show More
Working...