Permission denied to call method Location.toString using getJson

Permission denied to call method Location.toString using getJson


Hi,
I am a newbie in using jquery.Please excuse me if similar query has
been posted earlier.
I am using $.getJSON() on the click of a link.
when i pass the url it gives error 'Permission denied to call method
Location.toString'.
The url passed is correct and is within the same domain.
code snippet is
$(function()
{
$('#alink').click(function(){
var urljson = ' http://home/mailist?output=json';
alert(urljson);
$.getJSON(urljson,function(datajson){
alert('datajson '+datajson);
    });//getJson
}); //click
});//ft
alert urljson is giving proper url but alert inside the getJson() is
not working. seems its not going inside the function.
from where is the error coming.???
Regards
SDLC