|
[JQuery]Js problem...
Hi,
I am using plugin tooltip from jquery and I have small problem...
How can I return the value of the ajax request? It is comming through I can put is in the alert box or so but not on the level where I need to return that valu to the bodyHandler. Please help.
$(".entry_with_comments").tooltip({
bodyHandler: function() {
var returnValue, movieID;
movieID = $(this).attr("id");
$.ajax({
type: "POST",
url: "testHTML.asp",
data: "movieID="+movieID,
success: function(msg){
returnValue = msg;
//alert(returnValue);
}
});
//$(returnValue).load("testHTML.asp", {'movieID': movieID}, function(){
//alert("asdasdd " + movieID);
return "njij " + returnValue;
}
});
Last edited by Kor; 12-24-2009 at 02:10 PM..
Reason: JQuery prefix added and moved to the Frameworks section
|