Jump to content

stijn0713

Members
  • Content count

    231
  • Joined

  • Last visited

Community Reputation

3 Neutral

About stijn0713

  • Rank
    Advanced Member

Profile Information

  • Gender
    Not Telling
  1. stijn0713

    <a> inside <li>

    <a> inside <li> makes my list markers float above the <h4>item and <p> that are inside the <li>. Does anybody know why? Update: only in chrome it works (as in the markers are on the correct height)
  2. stijn0713

    post json with ajax

    i want to post a json literal with jquery ajax method. The $_POST array on the server side is empty, thought i see with firebug that the json literal has been send. If i switch to GET method, i do receive the literal but it's not clean formatted. client-side $.ajax({ type: "GET", url: 'ajax/saveInfoAuthenticatedUser.php', data: pic_data, dataType: 'json', success: function (data) { alert(data); } }); server-side $data = $_POST['pic_data']; print_r($_POST); What is the problem? I've read alot of posts on stackexchange where people had the same problem, but nowhere i could find the reason why the post variable is empty. Extra question: What is the clean way to send a json format? should i use stringify(), json_encode or something?
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.