i am trying to use data i am getting back from $.post but I am not
able to get the function with the data in it to work



$("a.rater").click(function(event)
        {
                $.post($(this).attr("href")),
                        function(data)
                        {
                   update = data.split('|');
                  $('#'update[0]).replaceWith(update[1]);
                        };
                return false;
        }
);

i also tried

$("a.rater").click(function(event)
        {
                $.post($(this).attr("href")),
                        function(data)
                        {
                  alert(+data);
                        };
                return false;
        }
);

any suggestions?


Reply via email to