You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
switch ($countLingue){
case 2 : array_push($arroutput, $arrayGER); break;
case 3 : array_push($arroutput, $arrayENG); break;
default : break;
}
echo json_encode($arroutput);`
javascript
var items = JSON.parse(jsonstring);
$('#flagselect').ddslick({
data: items,
width: 200,
imagePosition: "left",
onSelected: function (data) {
//console.log(data);
//mettere il value in sessione
//FIXME change language
}
});
The text was updated successfully, but these errors were encountered:
Hi when I hard code json in a variable javascript everything goes ok , when I send Json php array with json_encode method, ddslick catch this error
`$arrayITA = array( "text" => "Italiano", "value" => "1", "selected" => "1", "imageSrc" => "imgs/italy.png" );
$arrayGER = array( "text" => "Deutsche", "value" => "2", "selected" => "0", "imageSrc" => "imgs/germany.png" );
$arrayENG = array( "text" => "English", "value" => "3", "selected" => "0","imageSrc" => "imgs/english.png" );
$arroutput = array($arrayITA);
switch ($countLingue){
case 2 : array_push($arroutput, $arrayGER); break;
case 3 : array_push($arroutput, $arrayENG); break;
default : break;
}
echo json_encode($arroutput);`
var items = JSON.parse(jsonstring);
$('#flagselect').ddslick({
data: items,
width: 200,
imagePosition: "left",
onSelected: function (data) {
//console.log(data);
//mettere il value in sessione
//FIXME change language
}
});
The text was updated successfully, but these errors were encountered: