Cjax (Ajax Framework) for CodeIgnater v5.1 |
[eluser]Ajaxboy[/eluser]
Hello salvomil, So the issue is that you are passing two slashes together in the url. Solution #1 If all these fields are in the same form, I'd recommend using $ajax->form() instead of $ajax->call(), this would automatically submit $_POST all the items without passing them through the url. To get the values in the controller parameters you will need to name them in alphabetic order ( see form example: http://cjax.sourceforge.net/examples/send_form.php) Eg: Code: $ajax->keyup('search_username|search_cognome|search_nome',$ajax->form(base_url().'ajax.php?calls/search_utente/',null,'div_search_response')); Solution #2 A possible way around is adding prefixes: Code: 'ajax.php?calls/search_utente/|search_username|/username/field:|search_cognome|/cognome/field:|search_nome|/nome/field:|search_groups|/group_id/field:|search_stato|/status/' Then you would have to remove the prefix of each value, a little bulky for my taste but could work for you. Solution #3 Using alternative url type: (see: http://cjax.sourceforge.net/docs/url_styles.php) This would allow you to do the url in a more flexible way: Code: 'ajax.php?controller=calls&function=search_utente&a=|search_username|&b=|search_cognome|&c=|search_group|' If you name them a,b,c,d,e,f etc, they will be passed also as parameters. and so on.. |
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
|