:
public function actionGetLdap()
{
$model=new Ldap;
$en = <img src='http://www.yiiframework.com/forum/public/style_emoticons/default/huh.gif' class='bbc_emoticon' alt='???' /> // en is a enployee number, but don't know get how?
$info = $this->getCachedLdap($en);
$model = $this->processModel($info, $model);
$this->renderPartial('_ldap', array('model'=>$model));
}
:
The flow is as follows. As the code above, a user enters ‘enployee number’ (en) in the form and click ajaxlink. Then the javascript returns this en as Ldap[en] and call ‘actionGetLdap()’. I don’t know the way to get the value from the javascript. It may be JSON encoded but I am not sure.
Does anyone out there could kindly provide a suggestion to me? Thank you in advance.
Thanks alex-w , I should have added some informations though.
Suppose that the user enters en (employee number) as a user ID. Then the client system inquires the other informations such as user name, telephone number and so on to the LDAP server. Assume that the password is not stored in the server, the user has to enter it in the form.
In this situation, the user will enter en and click ajaxLink (or ajaxButton), and enter password. Everything has been entered, the user should click submit.
This is why I need the solution using AJAX without clicking the submit button.