Welcome Guest, Not a member yet? Register   Sign In
Cjax (Ajax Framework) for CodeIgnater v5.1
#4

[eluser]salvomil[/eluser]
Hi Ajaxboy,

I ask if is possible to resolve the following problem:

in an ajax call for autosearch (populating a div) :

Code:
$ajax->keyup('search_username|search_cognome|search_nome',$ajax->call(base_url().'ajax.php?calls/search_utente/|search_username|/username/|search_cognome|/cognome/|search_nome|/nome/|search_groups|/group_id/|search_stato|/status/','div_search_response'));

well if a form value is blank then the values passed stops to this field,

for example:

this is field values

|search_username| = salv
|search_cognome| = milite
|search_nome| = '' // blank value
|search_group| = 1
|search_stato| = active

in search_utente function of calls controller,
Code:
function search_utente($search1='', $field1='', $search2='', $field2='', $search3='', $field3='', $search4='', $field4='', $search5='', $field5='')
{
echo $search1 ,'-', $field1, '-', $search2 ,'-', $field2, '-' , $search3, '-', $field3, '-' , $search4, '-', $field4, '-', $search5,'-', $field5;
......
         ......
}

I get salv-username-milite-cognome------

where the |search_group| value (and field_name group_id) and |search_stato| value (and field_name status) are not present (because of the empty |search_nome| value)

What can I do to avoid this?

Thank you



Messages In This Thread
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 09-16-2012, 03:13 PM
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 09-17-2012, 02:49 PM
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 10-29-2012, 04:11 PM
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 10-31-2012, 02:02 AM
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 10-31-2012, 01:54 PM
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 10-31-2012, 02:32 PM
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 11-02-2012, 04:58 PM
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 11-07-2012, 02:42 AM
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 11-19-2012, 08:57 AM
Cjax (Ajax Framework) for CodeIgnater v5.1 - by El Forum - 11-20-2012, 04:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB