mRender function with
mRender function with
I have an mRender function which returns a value looking like this:
[code]return ''
[/code]
In the resulting HTML the closing tag is moved to the end of the table. So I get something like
[code]
Next column value
.other rows
.
.
[/code]
At end of table one per row
[code]
[/code]
So I get the above repeated once for each row. Functionally it works fine but I cannot see what is wrong. If I take out the
[code]return ''
[/code]
In the resulting HTML the closing tag is moved to the end of the table. So I get something like
[code]
Next column value
.other rows
.
.
[/code]
At end of table one per row
[code]
[/code]
So I get the above repeated once for each row. Functionally it works fine but I cannot see what is wrong. If I take out the
This discussion has been closed.
Replies
That's very interesting. The effect you are seeing I would expect from invalid HTML, but your HTML looks absolutely fine. The only thing I see (which might just be a copy / paste or forum issue) is the lack of escaping the quotes for the inline Javascript.
I've just put together a small example using your `return` option above, to test it, and you can see the result here: http://live.datatables.net/ibejiq/edit#javascript,html (click the 'Render' button in the top left to see it running). It looks like it show work okay.
Are you able to link me to the page you are working on so I can debug what is happening?
Thanks,
Allan
Paul