Hello,
I have a error when i tried to send post data with ajax()
method.
I have a array with :
- acpitool
- aide
I use encodeURIComponent()
for passing the array with data: but the ajax method fail.
Could you help me?
Thanks
Edit :
This is the ajax call
$.ajax({
url: 'AjaxSearch.php',
dataType: 'json',
data: param+"="+package,
type: 'POST',
success: function(data) {
}
});
package is a Array like this :
var package = new array("acpitool","aide");
Sometimes, i have this :
var package = new array("bonnie++");
For both, i have an error :
Uncaught Syntax error, unrecognized expression: +
Thanks again!