Ciao a tutti ragazzi, sto tipo impazzendo da due ore su google a fare vari tentativi..ma nulla di nulla...
ho questo pezzo di codice

codice:
    $.ajax({       url: '<?php echo site_url('Controller/setEvidenzia') ?>/',
       type: 'POST',
       async: true,
       data: {
           idDomanda: id,
       },
       dataType: "json",
       success: function (result)
       {
           if (result) //if success close modal and reload ajax table
           {
               if (document.getElementById('txtdomanda_' + id).style.backgroundColor === 'yellow') {
                   document.getElementById('txtdomanda_' + id).style.backgroundColor = '';
               } else {
                   document.getElementById('txtdomanda_' + id).style.backgroundColor = 'yellow';
               }
           }
       },
       error: function (jqXHR, textStatus, errorThrown)
       {
           alert(textStatus + ' ---- '+errorThrown);
       }
   });
che funge perfattamente su chrome safari firefox su pc ,mentre su mobile Ios sia iphone che ipad
continua a darmi questo errore:

parsererror ---- SyntaxError: JSON Parse error: Unexpected EOF

vi giuro che da impazzire
le ho provate un po tutte.. aggiungere il contenttype... conrollare se il json è corretto...
ho provato a fare una chiamata con XMLHttpRequest, ma nulla....
proprio non ne vuole sapere..
vi è mai successo o avete qualche soluzione da proporre... sono aperto a tutto.. anche a riscrivere tutto.. ma mi sta facendo impazzire.



grazie per qualsiasi suggerimento
Giuseppe