Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2010-09-22 10:39:24

$SMax$
Xinha Community Member
From: Russia
Registered: 2005-03-11
Posts: 21

ContextMenu is not working

I have updated version to 0.96.1  rev 1270. And now ContextMenu plugin is not working in Mozilla & IE at hosting. But it's working on local computer.

Why is it?

In Opera this is working both - hosting&local.
Inserting of link isn't working too. (like a context menu)

Offline

#2 2010-09-22 19:19:02

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: ContextMenu is not working

Clear your cache.

Then use Developer tools to see errors etc.


James Sleeman

Offline

#3 2010-09-23 02:39:14

$SMax$
Xinha Community Member
From: Russia
Registered: 2005-03-11
Posts: 21

Re: ContextMenu is not working

Mozilla Seamonkey Error-Console

Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: http://somesite.ru/engine/xinha/XinhaCore.js :: anonymous :: line 7138"  data: no]



In IE error bug-report point the same line - 7138


This is happen at remote server and is working on local computer

Offline

#4 2010-09-23 04:02:08

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: ContextMenu is not working

Indicates that an XMLHTTPRequest is failing for some reason.  Possible reasons I can think of....
1. File permissions are incorrect on remote server
2. You are trying to make a cross-domain request (page is on one domain, request is to another)

check config _editor_url is correct


James Sleeman

Offline

#5 2010-09-23 05:26:10

$SMax$
Xinha Community Member
From: Russia
Registered: 2005-03-11
Posts: 21

Re: ContextMenu is not working

Domain the same...

this is code from my editor:

include("cfg.php");
...
  <script type="text/javascript">
    _editor_url  = "<?=$cfg['site']['url']?>engine/xinha/";
    _editor_lang = "ru";
    div_on(1);
  </script>
  <script type="text/javascript" src="xinha/XinhaLoader.js"></script>
  <script type="text/javascript" src="XinhaConfig.js"></script>

---cfg.php---
$cfg['site']['url']= "http://".$_SERVER['HTTP_HOST']."/";

Offline

#6 2010-09-23 05:33:26

$SMax$
Xinha Community Member
From: Russia
Registered: 2005-03-11
Posts: 21

Re: ContextMenu is not working

And file permissions for JS module is not required...
Other modules and plugins of Xinha are working fine

Offline

#7 2010-09-23 07:34:44

$SMax$
Xinha Community Member
From: Russia
Registered: 2005-03-11
Posts: 21

Re: ContextMenu is not working

I've been changed language to "en" and now it's working...


Now I think what is to do with russian translate...

Offline

#8 2010-09-23 07:56:51

$SMax$
Xinha Community Member
From: Russia
Registered: 2005-03-11
Posts: 21

Re: ContextMenu is not working

Yes. It's not working with:    _editor_lang = "ru";

sad

Offline

#9 2011-01-20 09:19:29

GavinKou
New member
Registered: 2011-01-17
Posts: 4

Re: ContextMenu is not working

gogo wrote:

Indicates that an XMLHTTPRequest is failing for some reason.  Possible reasons I can think of....
1. File permissions are incorrect on remote server
2. You are trying to make a cross-domain request (page is on one domain, request is to another)

check config _editor_url is correct

now i got the same error when make a cross-domain request.

is there any way to make cross-domain and get the right response?

now i'm try the 'Access-Control-Allow-Origin:*' but it doesn't work.
i will tring other ways.

Offline

Board footer

Powered by FluxBB