Calling Ajax Function From A Custom Widget.


I want to create a widget that contains cascade dropDownLists, with ajax functions.

Since I need to use it in few pages (views and indices) I created it as a widget and placed it under protected/extensions/widgets.

I am trying to figure out how to call the ajax functions in my file, how can I generate the correct url?

The file name is CfCarsSelection.php

The widget is

class CfCarsSelection extends CWidget

The functions are public to this class.

Thank a lot.

thismay help you