Open new form from js call

I am using yii 1.1 for my project.In my form named mar_report i have used a two buttons and a table with checkbox .my button named “search” ,i have used to load data in table according to search condition.Another button named “mail”,i have used to open another form.i have used validation for mail button.if any of data in table is seleted then only another form named “_form” should be opened.My problem is i am not being able to open my _form view.My url also doesnot change.When in mark_report my url looks like ‘localhost/demo/index.php/marketing/marketingReport’ .when i click mail button my url must look like ‘localhost/demo/index.php/marketing/composeM’ which doesnot happens.

Mar_report form code:

<?php $form=$this->beginWidget(‘CActiveForm’, array(







echo CHtml::submitButton(‘mail’, array(‘onclick’=>‘js:act()’,

    'ajax'        =&gt; array(





<table class="bluetable" id="myDemoTable" cellpadding="0" cellspacing="0">



		&lt;th colspan=&quot;24&quot;&gt;&lt;b&gt;Marketing Report&lt;/b&gt;&lt;/th&gt;





			&lt;td style=&quot;background-color: #81BEF7;&quot;&gt;&lt;b&gt;&lt;input type=&quot;checkbox&quot; id=&quot;checkall&quot; class=&quot;CCheckBoxColumn&quot; name=&quot;idList[]&quot; &gt;&lt;/b&gt;&lt;/td&gt;				



                           &lt;td&gt;&lt;b&gt;Contact Person&lt;/b&gt;&lt;/td&gt;

			&lt;td&gt;&lt;b&gt;Contact Date&lt;/b&gt;&lt;/td&gt;





My jsCode is:

function act()


var fields = $(".CCheckBoxColumn").serializeArray();

var selctbox = [];

if (fields.length == 0)


      alert('Please select row to Mail.'); 



 	for(var i=0; i&lt;fields.length; i++){




 	var parIdList = &#036;.param({ 'idList': selctbox })


 &#036;.post( &lt;?php echo &quot;'&quot; . &#036;this-&gt;createUrl(&quot;marketing/composeM&quot;) .&quot;'&quot; ; ?&gt;, 

	{ idList: selctbox } );




My controller Code is:

public function actionComposeM()


&#036;mailList= array();

&#036;model=new Reply;

&#036;model-&gt;scenario = 'compose';


 foreach (&#036;idListe['idList'] as &#036;marketId) {



return $this->render(’_compose’,array(‘mailList’=>$mailList,‘model’=>$model));


What is mistake with my code??