Question
I am trying to use AJAX and incorporate JSON, PHP and jQuery.... Personal_Info.php AJAX, JSON, PHP, and jQuery Loading data.php JSON.js $(document).resdy(function(){ $('#loading').click(function(){ $.ajax({ type:
I am trying to use AJAX and incorporate JSON, PHP and jQuery....
Personal_Info.php
data.php
$about = array( 'name' => 'Deanna Medeiros', 'age' => 21, 'email' => 'dee@aol.com' ); $about2 = array( 'name' => 'John Doe', 'age' => 31, 'email' => 'jdoe@aol.com' ); $array =array($about,$about2); echo json_encode($array); ?>
JSON.js
$(document).resdy(function(){ $('#loading').click(function(){ $.ajax({ type: 'POST', url: 'data.php', dataType: 'json', success: function(data){ $('#result').append('
Name: ' + data.name + '
Age: ' + data.age + '
Email: ' + data.email + '
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started