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 ?
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 ?