CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Español

 Focus al cambiar de textbox en Editable Grid

Print topic Send  topic

Author Message
Paronamix

Posts: 2
Posted: 11/30/2011, 9:15 AM

Buenas,

basado en el ejemplo de:
http://examples.codecharge.com/ExamplePack/EditableGrid...idAddButton.php

Lo que necesito es que al pulsar el boton "Add Row" haga focus en el texbox siguiente, necesito modificarlo en el java script del ejemplo que es:

  
function departmentsAddRowBtn_OnClick()  
{  
    var result;  
//End departmentsAddRowBtn_OnClick  
  
//Custom Code @13-2A29BDB7  
var NS6 = (!document.all && document.getElementById) ? 1 : 0;  
var IE  = (document.all) ? 1 : 0;  
var O = typeof(opera) != "undefined";  
  
var FormState = document.departments.FormState.value.split(";");  
var AllLength = parseInt(FormState[0])+parseInt(FormState[1]);  
  
  if (parseInt(FormState[0]) == 0 ) {  
      FormState[0] = 1;  
  }  
  
  var i;  
  for (i=FormState[0]; i<AllLength; i++) {  
     var objRow = document.getElementById('row' + i);  
     if (NS6 || O) {  
       if (objRow.style.display == "none") {  
           objRow.style.display = '';  
           break;  
       }  
     } else {  
       if (objRow.style.display == "none") {  
           objRow.style.display = "block";   
           break;  
       }  
         }  
  }  
  
  if (i >= AllLength)   
      document.forms["departments"].AddRowBtn.disabled = true;  
  
//End Custom Code  
  
//Close departmentsAddRowBtn_OnClick @12-BC33A33A  
    return result;  
}  


Un saludo.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.