Announcement

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

#1 2011-01-20 12:21:48

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

how to cross domain deploy xinha ?

now deployed a xinha in http://a.x.com/js/xinha/ with imagemanage plugin.
is there any way to use http://a.x.com/js/xinha in another subdomain: http://b.x.com/index.html ?

if i derictylly use src='http://a.x.com/js/xinha/xinhacore.js' in http://b.x.com/index.html, it doesn't work. and firefox complains: 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]

Offline

#2 2011-01-20 19:31:00

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

Re: how to cross domain deploy xinha ?

No, very unlikely to ever work.


James Sleeman

Offline

#3 2011-01-21 03:42:16

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

Re: how to cross domain deploy xinha ?

I tried to include a  iframe which src is http://b.x.com/frame.html in the http://a.x.com/index.html and the the two pages the same document.domain.
but it donesn't work.  sad

Offline

#4 2011-01-21 05:01:30

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

Re: how to cross domain deploy xinha ?

No, the only way you can get this to work is.... use the same domain.  Put Xinha on b.x.com.


James Sleeman

Offline

#5 2011-01-22 11:02:46

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

Re: how to cross domain deploy xinha ?

now i use the rewrite mod with P flag in a.x.com to proxy all request to b.x.com, everything works fine. tongue

Offline

#6 2011-02-26 13:44:07

holidayC5152
New member
Registered: 2011-02-26
Posts: 1

Re: how to cross domain deploy xinha ?

i also do the same task and get better service now. Good tips. thanks for these tips that keep us more update.


smile  bartender certification online smile

Last edited by holidayC5152 (2011-09-10 14:44:23)

Offline

Board footer

Powered by FluxBB