Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack (3) Thread Tools Search this Thread Display Modes
  3 links from elsewhere to this Post. Click to view. (#1) Old
pfarmer Offline
New Member
 
Posts: 1
Join Date: Jun 2005
Permission denied to call method XMLHttpRequest.open - 13-06-2005, 11:49 AM

Hi all,

When I look at tickets in the Staff CP, I get the following javascript errors:

In my JavaScript Console (Firefox 1.0.4):

Error: uncaught exception: Permission denied to call method XMLHttpRequest.open

and this error in IE:

Line: 906
Char: 4
Error: Permission denied
Code: 0
URL: http://secure.hbhosting.co.uk/suppor...icket&ticketid

This happens when I click on any of the following:

Forward,Billing,Add Notes,Release,History,Audit Log, and Edit. General and Post Reply work fine.

Anyone know why I'm getting these errors?


Thanks
   
Reply With Quote
  (#2) Old
Varun Shoor Offline
Chief Executive Officer
 
Varun Shoor's Avatar
 
Posts: 2,829
Join Date: May 2003
18-06-2005, 11:22 PM

What are your security settings? v3 uses a new popular technology called AJAX (Also used in GMail, Google Maps etc).

Regards,

Varun Shoor


Varun Shoor (varun.shoor ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#3) Old
vitnuce Offline
New Member
 
Posts: 2
Join Date: Dec 2005
20-12-2005, 02:41 AM

Hello, i'm getting the same error when i'm using Forward,Billing,Add Notes,Release,History,Audit Log, and Edit, but Gmail (as Varun said) is still OK, what can i do ?

I'm using v3.00.28
   
Reply With Quote
  (#4) Old
twhiting9275 Offline
Member
 
Posts: 58
Join Date: Jun 2003
Location: Cornfield, IA
20-12-2005, 09:38 AM

Vitnuce:
Are you getting this from the winapp? If so, make sure that the URL is EXACTLY as registered. I had the exact same problem in the winapp with http://support.blah.com not working properly when https://support.blah.com was used in the installation. Check that, it helped mine. Silly, yes, but it worked, at least for me.
   
Reply With Quote
  (#5) Old
vitnuce Offline
New Member
 
Posts: 2
Join Date: Dec 2005
21-12-2005, 05:05 AM

Quote:
Originally Posted by twhiting9275
Vitnuce:
Are you getting this from the winapp? If so, make sure that the URL is EXACTLY as registered. I had the exact same problem in the winapp with http://support.blah.com not working properly when https://support.blah.com was used in the installation. Check that, it helped mine. Silly, yes, but it worked, at least for me.
Hi twhiting,

Our setting is EXACTLY ! In my company, the helpdesk in other PC is working fine, but with my PC it get that following errors. Anyway, thanx 4 ur reply !

Anybody can help me ?
   
Reply With Quote
  (#6) Old
caz Offline
New Member
 
Posts: 18
Join Date: Feb 2005
25-01-2006, 02:32 AM

I have this same issue and it is working without errors on 5 other computers .. 2 with the exact os etc as I have

this is driving me nuts

.. anybody find a solution to this ?
   
Reply With Quote
  (#7) Old
caz Offline
New Member
 
Posts: 18
Join Date: Feb 2005
25-01-2006, 02:48 AM

this happens way too often ..
I search for hours .. then finally post to a forum .. and less than an hour later I figure it out

everything here may not be required, but this is what worked for me ..

- uninstalled the winapp
- cleared IE cache/cookies/history
- emptied the cache directory of supportsuite install
- reinstalled supportsuite

This was something else I found browsing the forums .. mine was correct originally but this may help someone else having probs.

- your URL in the winapp must be exactly as it is in the admin cp > settings > general

ie:
if it is http://www.domain.tld/help then the www has to be there in the winapp
and if it is http://domain.tld/help, then the you must leave the www out of your winapp URL definition
   
Reply With Quote
  (#8) Old
brooky Offline
Member
 
Posts: 42
Join Date: Dec 2005
25-01-2006, 09:21 AM

Does anyone have a rock solid solution to this? It is madness.

What is winapp?
   
Reply With Quote
  (#9) Old
MartinV Offline
New Member
 
Posts: 6
Join Date: Jan 2006
31-01-2006, 06:11 AM

Permission denied to call method XMLHttpRequest.open

This is caused by an un-signed script in a Mozzila based browser.

see
http://www.forum4designers.com/message25416.html

and

http://www.mozilla.org/projects/secu...d-scripts.html
   
Reply With Quote
  (#10) Old
axel Offline
New Member
 
Posts: 2
Join Date: Feb 2006
07-02-2006, 06:06 AM

Great find, Martin. Could someone from Kayako reading this please make sure this fix gets into the product ASAP? Our only sanctioned browser is FireFox and I can't justify running Internet Explorer just for this application.

AJAX etc, it great new "technology" to be used, but neither Gmail or Google Maps requires me to alter my browsers security settings to work!!

Last edited by axel; 07-02-2006 at 06:10 AM.
   
Reply With Quote
  (#11) Old
ehoffman Offline
Member
 
Posts: 200
Join Date: Dec 2005
15-02-2006, 11:42 PM

Add your site to your Trusted Sites in Internet Explorer, delete all temp internet files, and refresh the page. You should be fine for the permissions denied issue. Just figured it out myself.


-------------
Eric
Managing Partner
EJH & Associates
Latest Stable Support Suite Owned
(with 7 domains)
   
Reply With Quote
  (#12) Old
toutoune8 Offline
New Member
 
Posts: 1
Join Date: Mar 2006
XMLHttpRequest.open denial - 22-03-2006, 11:30 AM

Hey guys,

I've read through the whole topic, and I don't understand why I can easyly read my emails via Gmail, which is in Ajax, and still not be able to run any XMLHttpRequest on my computer (localhost, with EasyPHP).

Anyone has a real solution?

I read about the certificate, but this only works for java applets i guess.

My script is a javascript in an HTML page.

when I run it under IE, I just have to say 'yes" to the security alert. Firefox simply throw me an 'access denied for XMLHttpRequest.open"

Please ! If there is someone out there with a solution, he/she would be welcome !

niX.
   
Reply With Quote
  (#13) Old
BSolveIT Offline
New Member
 
Posts: 3
Join Date: Apr 2006
15-04-2006, 04:17 AM

All you need to do is create a server side script that fetches the data you want, and returns it to your client side javascript. Because the server script resides on your server, and in your website, there is no security issue.

I'm an ASP developer, not PHP, so the only example I can give you is ASP based. Hopefully you can make a translation though.

An example line in your client script might be:
Code:
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", "/proxy_fetch.asp?url="+url, true);
The URL above is your server side script that actually retrieves the data you want, and writes it back in the response:
Code:
<% 
Response.Expires = -1
Response.Buffer=True 
Dim MyConnection, TheURL
	
' Specifying the URL
TheURL = request("url")
	
 Set MyConnection = Server.CreateObject("Microsoft.XMLHTTP")
' Connecting to the URL
MyConnection.Open "GET", TheURL, False
		
' Sending and getting data
MyConnection.Send 
TheData = MyConnection.responseText

'Set the appropriate content type
Response.ContentType = MyConnection.getResponseHeader("Content-Type")
Response.Write (TheData)

MyConnection.Close
Set MyConnection = Nothing
%>
From this point forwards in your client script - just carry on as normal.

I hope that makes sense? Try it - it's a lot simpler than you might think and it completely bypasses any security issues because your client script never attempts to access data outside of your server - only your server script does.

Good luck!



http://www.bsolveit.com
Web Design for Business Growth
   
Reply With Quote
  (#14) Old
MelissaM Offline
New Member
 
Posts: 2
Join Date: Jun 2006
Also getting Permission Denied error and tried your suggestion ... - 06-06-2006, 03:56 PM

Hello,

This is my first time in, but I too have been trying to get rid of this Permission Denied error on the open call. I am also an ASP developer and did try to incorporate your code. I am trying to send XML data to a remote server and then retrieve the XML result.
For now I have my XML data hard-coded. I've been just trying to play with the XMLHTTP object to get this to work. Things were going fine locally, but as soon as I enter the remote server location, I get the "Permission Denied" error.
I'm unable to see if your code has fixed my problem. I'm getting to results back. Something happens, but it doesn't appear to execute my Server Script.

My Client code is simply a javascript call to:
xmlhttp.open("GET", "ServerScript.asp?url="+"http://<remoteurl>/engine/GCMRequest", false);

My Server Script is as follows. I basically took your code and change the "POST" and added a big long XML string to send (which I exlcluded here).

Response.Write "in here"
TheURL = request("url")
Set MyConnection = Server.CreateObject("Microsoft.XMLHTTP")
MyConnection.Open "POST", TheURL, false
MyConnection.Send("XMLRequestDocument=" & strXML);
TheData = MyConnection.responseText
Response.ContentType = MyConnection.getResponseHeader("Content-Type")
Response.Write (TheData)
MyConnection.close
Set MyConnection = Nothing
%>

But I am getting nothing back.
Do you have a minute to look at this and tell me if you see something wrong?

Thanks!
MelissaM
   
Reply With Quote
  (#15) Old
MelissaM Offline
New Member
 
Posts: 2
Join Date: Jun 2006
Disregard previous message - 06-06-2006, 06:24 PM

I was able to get this client/server code to work.
A stupid javascript error was keeping my code from proceeding and was not reporting an error.

Thanks for the code though! It was a life saver!!

Melissa
   
Reply With Quote
Reply

Tags
denied, method, permission, xmlhttprequestopen

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://forums.kayako.com/f56/permission-denied-call-method-xmlhttprequest-open-3605/
Posted By For Type Date
jQuery Forum :: View topic - .load() - weird behaviour? (jQueryHelp.com) This thread Refback 13-02-2008 10:26 PM
[SOLVED]uncaught exception: Permission denied to call method XMLHttpRequest.open This thread Refback 02-01-2008 01:11 PM
Mike&#039;s Home - [SOLVED]uncaught exception: Permission denied to call method XMLHttpRequest.open This thread Refback 27-12-2007 10:26 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
CRON - wget permission denied sgostelow Installation & Upgrading 1 20-10-2007 09:27 AM
Support Suite + Permission Denied Ricky Smith SupportSuite, eSupport and LiveResponse 22 11-06-2007 07:02 AM
Random Permission Denied on Win TMmike SupportSuite, eSupport and LiveResponse 7 18-01-2007 07:02 PM
Unable to Forward or Add Notes -permission denied jeroeninspain SupportSuite, eSupport and LiveResponse 6 22-11-2006 02:54 PM
Cpanel Cron Permission Denied solution. Marc Lindsay SupportSuite, eSupport and LiveResponse 0 26-10-2006 05:21 AM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46