[eluser]Ajaxboy[/eluser]
Try doing it in your CI controller instead of on the view. It is possible that the JavaScript lib is being loaded before the statement in the view, so it won't pick these commands retroactively.
Eg:
In your Controller
Code:
foreach ($result as $row) {
$ajax->Exec("thing_{$row->id}",$ajax->call("/ajax/x_class/do_some_things/{$row->var1}/{$row->var2}"));
}
Then in your view do your anchors:
Code:
foreach ($result as $row):
echo "<a href='#' id='thing_{$row->id}'>clicky</a>";
endforeach;