Ajax call implementation. How does it works within oxid?

I was able to get the call to work by generating the URL for my javascript in my controller for the view.

This is in the render function and is due to the getSelfLInk() call not being aware of decoding or encoding html entities.

$this->_aViewData['generateAjaxUrl'] = html_entity_decode(
  $this->getViewConfig()->getSelfLink()
) . 'cl=mycontroller_i_call&fnc=generateAjaxResponse';