[eluser]LifeSteala[/eluser]
I have this function in my controller, and I have the <select> in the view. Well 2 selects, one client and one project. The controller passes the client result to the view and in the view it loops out the clients.
On client select i can get the ClientID using ajax, but I cant populate the 2nd select, projects..
Can anyone help me? Cheers
Code:
function get_projects($clientID)
{
$proj_query = $this->projects->getProjectsA($clientID);
$objResponse = new xajaxResponse();
foreach($proj_query as $rows)
$options = "<option value='{$rows->project_id}'>{$rows->project_name}</option>\n";
$objResponse->Assign("change","innerHTML", $options);
return $objResponse;
}