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");
  4.  
  5. divElement.innerHTML = xmlHttpRequestObj.responseText;// 1
  6.  
  7. }
  8.  
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

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


RamananKalirajan
100+
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 ).

Regards
Ramanan Kalirajan
Jun 2 '09 #2

Post your reply

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