Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

AJAX, JSON, PHP, and jQuery

Loading

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions