ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Permission denied to call method Location.toString using getJson

September 13, 2008 9:02am

Subscribe [1]
  • #1 / Sep 13, 2008 9:02am

    rupam

    4 posts

    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
    Rupam

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases