Click to See Complete Forum and Search --> : cross domain access in javascript


arpandesai
12-21-2006, 05:36 AM
Hello guys. i am creating sub domains for 1 site. I have created sub domains successfully. sub domains are created through virtual directory. but problem is this sub domain is for FORUM. and we have given HTML editor to post forum topics or reply for any topic.

This editor is taken from RTE. in this editor when we try to insert any smiley or symbol it gives error in sub domain section. same editor is working in single domain sites.

internally, it calls 1 javascript function, self.parent.addSmilye(rte,smiley). these 2 parameters are 1. body tag of that editor.. which is frame. and 2nd part is smiley image path.

Here i tried to give smiley image path static e.g. http://www.buddyslim.com/img/smiley/5.gif.... even it didn't work.. it gives javascript error in sub domain section..

Error: uncaught exception: Permission denied to get property Window.addSmiley

This is the error. and function which is giving error is as below.

function selectSmiley(rte,smiley) {
self.parent.addSmiley(rte,smiley);
}

CAN ANY1 HELP ME OUT?

Kudose
12-21-2006, 08:42 AM
Please don't cross post between boards.

arpandesai
12-21-2006, 11:52 PM
Please don't cross post between boards.

means? wat's solution? i can't understand.

Kudose
12-22-2006, 02:01 AM
It means don't post your problem in multiple boards. Most people read most of the boards, plus it is a violation of the board rules.