473,467 Members | 1,436 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

I have problem with ajax in IE(<table> tag)

6 New Member
I am trying to load pages with ajax. My code runs really well in Firefox. However I got problem with IE. I can't load the page with <table></table> tag on it. IE can load the page with other tags <form>,<b>,<i>... with no problem. IE seems to ignore anything between <table></table> tag. I am using IE 8, and trying to load a page with <table> tag into a <div></div>. I don't get any problem with <table> tag in FireFox.
This is my js for ajax:

Expand|Select|Wrap|Line Numbers
  1. function loadPage(url,pageLoaderDivID)
  2. {
  3.     if (window.XMLHttpRequest)
  4.       {
  5.           xmlObj = new XMLHttpRequest();
  6.       }
  7.     else
  8.       {
  9.           xmlObj = new ActiveXObject("Microsoft.XMLHTTP");
  10.       }
  11.  
  12.     xmlObj.onreadystatechange=function()
  13.       {
  14.           if (xmlObj.readyState==4 && xmlObj.status==200) //4 = loaded, 200 = ok, 400 = fail
  15.         {
  16.             document.getElementById(pageLoaderDivID).innerHTML = xmlObj.responseText;
  17.             //document.getElementById("loadingCheck").innerHTML = '';    
  18.         }
  19.     }
  20.     xmlObj.open("POST",url,true);
  21.     xmlObj.send();
  22. }
Thank you
May 15 '10 #1
3 1929
Dormilich
8,658 Recognized Expert Moderator Expert
in tables .innerHTML is read-only.
May 15 '10 #2
meodanang
6 New Member
@Dormilich
Could you please give a solution for this?
May 15 '10 #3
Dormilich
8,658 Recognized Expert Moderator Expert
use DOM methods.
May 16 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Paul Thompson | last post by:
When I put a <div ...> inside a <table> specification, functionality is not there. When I put the <table> inside the <div> everything works. Why is that?
61
by: Toby Austin | last post by:
I'm trying to replace <table>s with <div>s as much as possible. However, I can't figure out how to do the following… <table> <tr> <td valign="top" width="100%">some data that will...
3
by: Milan | last post by:
When I put my <object> tag out of <table> (and <div>), VBScript code below works fine. When I put <object> tag into <table> (and put <table> into <div> tag) it doesn't work. What I am doing wrong?...
1
by: Bob Paterson | last post by:
I have a strange problem I can't seem to fix. I've created a content cell using a table TD, labeled it with a unique ID tag and among other things, have it display a 1px gray right border. On most...
19
by: CMAR | last post by:
I have the following markup. The problem is that the browser, e.g., IE6, inserts several lines of blank space between the <div> and the following table. Is there a way to minimize that vertical...
5
by: D E | last post by:
Here is the problem. The following script/html code works in IE, not Netscape. The javascript portion produces the text to be dynamically written in the <A HREF="">HEREHEREHERE</A> portion... The...
6
by: hsomob1999 | last post by:
so i have a <ul> and I allow the user to append items to it. The problem is that on mozilla the <span class="line"> which is just a line to divide the sections gets overlaped and doesnt move down...
3
by: RC | last post by:
I have a very sime html table like <html><head><title>My Table</title> <style> input { margin: 0; padding: 0; border-width: 0; text-indet: 0; text-align: left } </style></head><body> <table...
6
by: Chris Fink | last post by:
Does anyone know it is possible to include a small image(.gif .jpeg) within a <SELECT><option> so that the user would see the option text as well as a little image(icon) in the option? I know this...
6
by: TheTamdino | last post by:
I have experienced this issue in both IE and in Firefox, but usually not the same page at the same time. I'll have text that begins and ends with the paragraph tag <p>. This tag is suppose to...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.