Jump to content

returning something


Shadowing

Recommended Posts

Hey guys I'm having a problem with returning some data from with in a function.

I'm trying to display display_stars in the "div.map"

function a_function(){
$.ajax({            

		url: "<?php echo LPATH; ?>ajax/map.php?functions="+arrow,            

		type: 'POST',            

		dataType: 'json',            

		data: { 
			},            

			success: function(response) {              

				$('div.map').html(response.display_stars);

			}

}); 
}

Link to comment
https://forums.phpfreaks.com/topic/262811-returning-something/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.