Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7652379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:45:13+00:00 2026-05-31T11:45:13+00:00

Normaly a ajax Datasource (for Datatables) looks like this: aaData: [ [ Trident, Internet

  • 0

Normaly a ajax Datasource (for Datatables) looks like this:

"aaData": [
            [ "Trident", "Internet Explorer 4.0", "Win 95+", 4, "X" ],
            [ "Trident", "Internet Explorer 5.0", "Win 95+", 5, "C" ]
]

Is it possible to have a DOM response to an ajax request in Datatables ?
and have the server respond with html instead of Json ?

I would like to be able to just return the html:

<tr>
 <td>cell 11</td>  <td>cell 12</td>
</tr>
<tr>
 <td>cell 21</td>  <td>cell 22</td>
</tr>

This html example is a simplification, I want to return html because some of my columns are more complicated than just a simple text or date field.

NOTE:
I imagine this could be done with fnRowCallback, by generating the html code on the client side and using the normal Json response data, but it seems a bit unelegant to me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T11:45:15+00:00Added an answer on May 31, 2026 at 11:45 am

    I usually generate the code server side withouth problems and send the html back as json

    "aaData": [
        [ "<a href.....>Trident</a>", "<div class='myclass'>Internet Explorer 4.0</div>"],
    
    ]
    

    in this way you generate the html serverside and then it gets inserted as is in the <td>

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

normally my ajax functions look something like this: function ajaxCallback(url,functionToRun) { if (window.XMLHttpRequest) {//
This is one of those ajax alternate flow questions. Normally I expect my ajax
Normaly i would do a delete * from XXX but on this table thats
Normaly MinGW (GCC C Compiler) recompiles only files that have beeen changed. But I
I have acustom sharepoint page. on my machine I can debug the code normaly
I still am confused regarding Ajax technology. And I still cannot answer this question
I got control with strongly typed View, with Ajax.BeginForm(). Now I would like to
Im having a very weird issue. I have a normal ajax call that upload
In my websites normally I use Ajax, so the address is always something like
I have form which data will be sent via ajax. It is normal string-type

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.