Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IE gives problem

    Hi,

    I have a jsp code works fine in firefox bot not in IE.

    <table> <td >
    <div id="first" ></div>
    </td></table>

    I have replaced the div portion using ajax:

    var urlvalue = "first.jsp?select="+select";
    document.getElementById("first").innerHTML=xmlhttp.responseText;

    and

    corresponding portion of first.jsp is :

    <tr ><td class ="text_black" nowrap><%= val%><td><input type="checkbox" name="List" value="<%= val%>"></td></tr>

    Problem is: All the rows are get printed in single line in IE while firefox prints one by one neatly. I heard IE doesnot support innerHtml method.
    please any body give solution that my code works well in both browsers.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    Do you expect your final html code like
    Code:
    <table> <td >
    <div id="first" >
     <tr ><td class ="text_black" nowrap>{some value}<td>
         <input type="checkbox" name="List" value="<%= val%>">
        </td></tr>
    </div>
    </td></table>
    ?

    If, it's pretty invalid(missing a </td> there. You cant nest a <tr> inside a table like that). Validate your code and fix all errors in your markup first.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •