I am using magento add to wishlist via ajax
it's working fine but after install SSL on server and make secure magento checkout pages from admin.
It give me not any response from ajax (302 Found).

But if i open this url in new tab then it's working fine.
When i use https in request url then it gives me the following html response "Reload the page to get source for: REQUEST URL" and without https there is no response to display.

here below the code which i used for :- 

```
function additemtowishlist(wId,pId)
{
    var wishlisturl = 'wishlist/index/ajaxadd/product/'+pId;
    var wishlistparam = '/?wishlist_id='+wId;
    var url = '<?php echo Mage::getUrl("",array('_secure'=>false))?>'+wishlisturl+wishlistparam;
    new Ajax.Request(url, {
        dataType: "json",
        onSuccess: function(response){
            if (typeof(response.responseText) == 'string') eval('data = ' + response.responseText); 
            if (typeof data.product_id != 'undefined') {
                var htmltoshow = '<div class="messages successmessage"><div class="success-msg"><span>'+data.message+'</div></div>';
                jQuery("#wishlistresulthome-"+data.product_id).html(htmltoshow);
                jQuery("#customwishlist-"+data.product_id).css('visibility','hidden');
            }
            else {
                 alert(Translator.translate('Error happened while creating wishlist. Please try again later'));
            }
        }
    });
}

```

Thanks in advance.