try post insted of get request.
sweet
2010-07-15 13:52:26
You should use the jQuery.ajax
version but not hardcode the callback name. Instead parse the href attribute and extract the name of the callback to use..
and here is the parsing..
jQuery('#mylink').live("click", function() {
var href = jQuery('#mylink').attr('href');
jQuery.ajax({
type: 'GET',
dataType:"jsonp",
jsonpCallback: href.match(/([?&]callback[a-zA-Z0-9=]+)/)[0].split('=')[1],
error: ErrorHandler.catchXhrError,
url: href;
});
});