[jQuery] unworking php callback
Hi everybody,
i'm trying to get some data from a php script using $.post() paradigm.
Let me show you the code:
JS:
$.post(
"dictionary.php",
{"value" : value},
function(data){
alert("data")
});
PHP:
<?php
$value = $_POST['value'];
echo $value;
?>
Ok, this look like an example, but it isn't too much simpler than my
code.
I'm learning jQuery, so I'm using simple functions. I only changed
variable names to be more readable :)
Anyway, the problem is that in the js code, the alert isn't shown as
the program-flux doesn't run the function.
It looks correct. Where am I making mistakes?
Thanks a lot
Balanza