View Single Post
Old 11-14-2012, 07:02 PM   PM User | #1
sonic656
New Coder

 
Join Date: Sep 2011
Location: 127.0.0.1
Posts: 62
Thanks: 18
Thanked 0 Times in 0 Posts
sonic656 is an unknown quantity at this point
ajax script not working :( plz help

My code:

JAVASCRIPT PART:
Code:
function test() {
	$.ajax({
		url: '../ajax/test.php',
	}).done(function(data) { 
		return data;
	});
}
alert(test());
PHP PART:
Code:
<?php
	echo "Hello, world!";
?>

What I'm doing wrong ? :/



PS: Im loaing jQuery mini 1.8 from jquery website.
__________________
My website is here: http://www.moowdesign.eu/. It is not complete yet, and I want to add language translations for some languages(including english).
sonic656 is offline   Reply With Quote