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

Init function from serverside html onclick function invalid reference due to scope

$
0
0

I am rendering html serverside

<a href="#" onclick="checkBal('269C9607C92FE045B3A121CEE3F17FD6');">PINV</a>

the page is loaded via ajax and includes a script inline with datatable loaded after document ready. I have tried the checkBal function in intiComplete, after $document Ready and before ready in the script tag. The table loads ok with all rows correct inc urls. However onclick error Uncaught ReferenceError: checkBal is not defined I realise this is something to do with scope so where do I define the function ?

Thanks


Viewing all articles
Browse latest Browse all 82411

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>