cakephp helper ajax,ajax cakephp succes
Does the actual ajax call get executed?
If yes; try this to see if the success callback is really called.
$this->Js->get(#AdCountryId1)->event(change,
$this->Js->request(
array(
controller=>cities,
action=>getByCountry
),
array(
update=>#city-wrap,
success=> "alert(Success!); $(#AdCityId).selectbox();",
async => true,
method => get,
dataExpression=>true,
data=> $this->Js->serializeForm(array(
isForm => true,
inline => true
))
)
)
);
If you will see the Success! message, there is probably something wrong with $(#AdCityId).selectbox();
Does the actual ajax call get executed? If yes; try this to see if the success callback is really called. $this->Js->get(#AdCountryId1)->event(change, $this->Js->request( array( controller=>cities, action=>getByCountry ), array( update=>#city-wrap, success=> "alert(Success!); $(#AdCityId).selectbox();", async => true, method => get, dataExpression=>true, data=> $this->Js->serializeForm(array( isForm => true, inline => true )) ) ) ); If you will see the Success! message, there is probably something wrong with $(#AdCityId).selectbox();