Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82017

execute simple script.. not working, help pls?

$
0
0
Hello,
i have this:

{ "fnRender": function ( data, type, full ) {
return "<div id='lojas-$$id'>$$id<script type='text/javascript'>(function(x){alert(x);})(5);alert( '$$id'); $('lojas-$$id').html('---');</script></div>".render({id: type});
}, "aTargets": [ 5]
},



it prints the $$id, but i want to execute the part inside <script>... and it doesnt seems to get executed... but its rendered there, i can see with firebug... whats the correct way to do this ?

Viewing all articles
Browse latest Browse all 82017

Trending Articles