Link to home
Start Free TrialLog in
Avatar of Cybervanes
Cybervanes

asked on

jQuery Ajax Function | Parse JSON Returned Data

I'm trying to find the best way to set up jQuery and handle data returned in JSON format from a php script.

sample returned json data: [{ "debugMsg": "html formatted data", "otherData": "more html formated data" }]

$.ajax({
		 type: 'POST',
		 url:  'Scripts/FormHandler.php?'+value,
		 dataType:"json",
		 success: function(msg){ 		 
			$('#DebugConsole').prepend(msg.debugMsg).slideDown();
			$('#OtherInfo').html(msg.otherData).slideDown();
		}  
	});

Open in new window


anybody have any ideas?

thanks in advance!
ASKER CERTIFIED SOLUTION
Avatar of StingRaY
StingRaY
Flag of Thailand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Cybervanes
Cybervanes

ASKER

Rookie Move!!! i should have seen that! thanks for your help!