We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19889
    • 616 Posts
    quick question: does anybody know where the following error is coming from: [Exception... "’Permission denied to call method XMLHttpRequest.open’ when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "" data: no]

    how can I fix this?

    running the site on localhost works fine - the problem only occurs upon first opening of the browser window - going to a different page and returning back to the home page also works - it’s really kind of weird and I have no idea where to start debugging. the site can be found here: http://trade.ch and the code is as follows:

    indices: function() {			
    		var accordion = new Accordion('dt.toggler', 'dd.section', {
    			opacity: false,
    			fixedHeight: 145,		
    			onActive: function(toggler, element) {				
    				if (toggler.getFirst()) var s = toggler.getFirst().getProperty('rel');
    				var l = $('tvLang').getValue();					
    				var url = $$('base')[0].getProperty('href')+"assets/site/inc/getStocks.php?ticker="+s+'&lang='+l+'&random='+$time();				
    				if (toggler.getFirst()) {
    				new Ajax(url, {
    					method: 'post',					
    					onComplete: function() {
    						var html = arguments[0];
    						toggler.getNext().setHTML(html);
    						if ($('loading')) $('loading').hide();
    					}
    				}).request();
    				}
    			},		 
    			onBackground: function(toggler, element){
    				if ($('loading')) $('loading').show();	
    			}
    		}, $('accordion'));


    thank you in advance for your help.