Error in IE 8 while implementing RichTextArea for cross domain scripting

48 views
Skip to first unread message

the.wizard

unread,
Aug 12, 2012, 11:29:32 PM8/12/12
to google-we...@googlegroups.com
Hi everyone,
I really need help for this problem... Currently I need to do some cross site scripting.. I have the first application hosted in domain first.application.com, and the other application hosted in domain second.application.com. Therefore, I need to do some manipulation to both document.domain of first application and second application. So I change the first application  document.domain to application.com, and also the second application document.domain to application.com. The problem now, in my second application, I use Html Editor which embedded with RichTextAreaImpl inside it. In browser IE 8, I always got error : Permission denied, everytime I tried to set HTML value to my HTML Editor.
The strange thing is, it working well in browser FireFox and Chrome... After investigating more, I found out that in IE, the browser render some strange IFrame, which is the html tag is outside of the iframe tag... While in FF dan chrome, it render correctly (html tag is inside of Iframe tag)...
Please help me to solve this problem... What solution do I have? I need to get the html tag of html editor, but I can't get it because everytime I tried to get it from html editor element, it just give me null because the html tag render outside of iframe tag.
Here is the rendered html of html editor (in IE, using developer tools, F12) :

<iframe title=" HTML Editor" class=" x-component" id="x-auto-112" src="javascript:'';document.open();document.domain='devkds.devbz.local';" frameBorder="0" style="width: 1213px; height: 570px;" __listener="" __eventBits="6785">
<html>
   <head>
      <title></title>
<body>
   this is content of html editor

Thanks,
Regards,
the.wizard

the.wizard

unread,
Aug 13, 2012, 9:29:05 PM8/13/12
to google-we...@googlegroups.com
anyone can help me? still no luck with this problem...
Reply all
Reply to author
Forward
0 new messages