By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,442 Members | 1,357 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,442 IT Pros & Developers. It's quick & easy.

AJAX: preview page having table inside div

P: 1
How to preview an HTML page which has tables, inside a <div> tag?

here is the sample code:

Expand|Select|Wrap|Line Numbers
  1. function preview(xmlHttpRequestObj){
  2. // ...
  3. var divEelement = document.getElementById("div-tag-id");
  5. divElement.innerHTML = xmlHttpRequestObj.responseText;// 1
  7. }
It works fine if the HTML page, stored in responseText, does not have <table> tag.
htmlf: Undefined runtime execption occurs if the HTML page has <table> tag.

Please help me out to get rid of the problem

Jun 2 '09 #1
Share this Question
Share on Google+
1 Reply

P: 607
It should not be the problem, I had worked in many applications, in whcih i had loaded the another page on Ajax call I havent faced any such kind of problem. Have you include the "doctype" and "Meta" tag information in that HTML? can you please post the code & the ResponseText (which contains the Table inside a Div ).

Ramanan Kalirajan
Jun 2 '09 #2

Post your reply

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