ajaxhelper

Triggering event manually in JS Helper CakePHP

♀尐吖头ヾ 提交于 2019-12-21 04:48:40
问题 I stuck in a situation. I am using JS Helper. I used the following code. <?php $this->Js->get('#client_id') ->event('change', $this->Js->request(array('action' => '../ajax/get_client_location_and_process'), array('update' => '#client_location_process', 'async' => false, 'dataExpression' => true, 'method' => 'post', 'evalScripts' => true, 'data' => $this->Js->serializeForm(array('isForm' => True, 'inline' => True)) ) ) ); I want to trigger the change event on page load. If I am using document