[eluser]obay[/eluser]
Hi all,
Forgive my noob-ness, but I cannot, for the life of me, understand why this piece of code doesn't work...
In my view:
Code:
function get_conflict() {
alert('hi');
$.post("/plan/test/", { username: 'test' }, function (data) {
alert('yo');
});
alert('hello');
}
In my 'Plan' controller:
Code:
function test() {
return json_encode(array(5));
}
The "hi" and "hello" gets executed, but the "yo" doesn't. Can somebody point me to the right direction?
Thanks very much for your time.