tags:

views:

156

answers:

1

Hi, I m having a three controllers in my app. Forms,attributes,Users

In my /forms/designpage I m posting the datas as

              $.ajax({
      type: "POST",
      url: "./attributes/untitledfieldname",
                               data: "sequence_no="+counter+"&type="+type,           
             success: function(msg){

       }//success
         });//ajax

SInce i am having my untitledfieldname action inside Users Controller ,in the URl i gave as ./attributes/untitledfieldname ..But this doesn't works Edit:

I have changed the Url .Actually my went like forms/attributes/untitledfieldname where forms is m base ctrller and attributes is my another ctrller.. Now i pu tthe DIrect Url .. Now it works

A: 

Use something like

// ...
url: "<?php echo $html->url('/controller/action'); ?>",
// ...

Also, consider using $.post rather than $.ajax

Xr