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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---