Jump to content

Hussam7102

New Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Hussam7102

  1. Javascript: $getJSON("path", function(data){alert(data.name)}) Guys in this line "data" is not working as an object. name is unrecognizable here. I am sending multiple outputs in php using json_encode() function but not able to get those values in javascript file. PHP Code: $book = array("name"=>"Hussam", "num"=>1); echo json_encode($book);
×
×
  • Create New...

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.