¿Accesing cell in client side doesn't works in Firefox?

3 posts, 1 answers
  1. Jhonattan
    Jhonattan avatar
    16 posts
    Member since:
    Sep 2009

    Posted 22 Feb 2010 Link to this post

    Hi, i have a problem, i extracting values from radgrid row and i assign that values to controls in the client side. that works fine in IE but in firefox shows the word "undefined". this is the codeblock that i use.
     <script language="javascript" type="text/javascript"
     
                function RowMouseOver(sender, eventArgs) { 
     
                    var dataItem = $get(eventArgs.get_id()); 
                    document.getElementById("Cod").innerHTML = dataItem.cells[3].innerText; 
                    document.getElementById('DescripNom').innerHTML = dataItem.cells[4].innerText;

                    document.getElementById("TxtCod").value = dataItem.cells[3].innerText
                    document.getElementById("DDLCodAr").value = dataItem.cells[6].innerText; 
                    document.getElementById("TxtDescrip").value = dataItem.cells[4].innerText; 
                    document.getElementById("TxtDescShort").value = dataItem.cells[5].innerText; 
                    document.getElementById("TxtAus").value = dataItem.cells[8].innerText; 
                    document.getElementById("ChBCal").checked = dataItem.cells[9].children[0].children[0].checked; 
                    document.getElementById("ChBArFund").checked = dataItem.cells[10].children[0].children[0].checked; 
                    document.getElementById("ChBAct").checked = dataItem.cells[13].children[0].children[0].checked; 
                    document.getElementById("TxtOPrint").value = dataItem.cells[11].innerText; 
                    document.getElementById("TxtPes").value = dataItem.cells[12].innerText; 
                } 
            
            </script> 
    i don't have idea why happening this. anybody could help me??... thanks
  2. Answer
    robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 22 Feb 2010 Link to this post

    I think you should replace innerText with innerHTML. I don't believe FireFox accepts or uses the innerText property.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jhonattan
    Jhonattan avatar
    16 posts
    Member since:
    Sep 2009

    Posted 22 Feb 2010 Link to this post

    thanks, that was the problem, Compatibility browsers sucks
Back to Top