CreateUrl for widget action

Hi

I have a widget in ext that it’s route is ext/mapWidget/mapWidget

i want to create url for specific action of this widget in my jquery ajax method to get information from this widget and send data with json for success function of JQuery ajac.

if i used Controller i used this code for create url in ajax function




($).ajax{

url:<?php echo $this->createUrl('actionFunctionName')?>

...



but i don’t know how can i create url for specific action of widget in ext folder!

Can i send data to that action method with below approach?




($).ajax{

url:<?php echo $this->createUrl('actionFunctionName',array('data'=>$data)?>

...



I use


$this->owner->createUrl()

or


Yii::app()->controller->createUrl()

in widgets