Is the following code correct?
$.ajax( {
url: './ajax/ajax_addTerms.php',
type: 'POST',
data: {"fId" : $fId, "term" : $term, "alias" : $alias,
"userId" : <?php print $userId; ?>},
When I remove the PHP tags it works, but this way it doesn't.
<?php
. But the JavaScript engine won't throw an error. – Felix Kling Dec 22 '10 at 14:30