locked
HTML WebResource issue RRS feed

  • Question

  • Hi All,

    We have an issue with HTML Web Resource. We need to populate table in HTML Web Resource and setting the table values at run time using Javascript. Its working in IE, but values are not populate in either Chrome or Safari browsers. 

    Below is the code FYR, please check and let me know what is the issue.

    <html>
    <head>
    <script src="ClientGlobalContext.js.aspx" type="text/javascript"></script>
    <script type="text/javascript">
    function populateQuoteDetails(){
    var quoteDetails = document.getElementById("tblQuoteDetails");
    quoteDetails.cells['tdDate'].innerText = stringTodayDate;
    quoteDetails.cells['tdQuotation'].innerText = '1234567';
    }
    </script>
    </head>
    <body>
    <table id="tblQuoteDetails" style="width: 100%;">
            <tbody>
                <tr>
                    <td style="width: 50%;">
                        <b>
                            Customer Address
                        </b>
                    </td>
                    <td style="width: 25%;"><b>Date</b></td>
                    <td id="tdDate" style="width: 25%;"></td>
                </tr>
                <tr>
                    <td id="tdQuoteAddress" style="width: 50%;"></td>
                    <td style="width: 25%;"><b>Quotation #</b></td>
                    <td id="tdQuotation" style="width: 25%;"></td>
                </tr>
            </tbody>
        </table>
    </body>
    <script type="text/javascript">
            window.onload = populateQuoteDetails;
        </script>
    </html>

    Regards,

    Kumar R

    Monday, July 11, 2016 5:38 PM