Go Back   SmartClient Forums > Technical Q&A
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 26th Jun 2012, 07:27
brunostuder brunostuder is offline
Registered Developer
 
Join Date: May 2007
Posts: 33
Default Problem loading RichTextItem

When I try to load a RichTextItem with SmartClient_v82p_2012-06-26 and Chrome 19.0.1084.56 I get this Error
Code:
Unsafe JavaScript attempt to access frame with URL https://195.48.43.52/opencrx-lifestock-MASOFT/isomorphic/system/helpers/empty.html from frame with URL https://195.48.43.52/opencrx-lifestock-MASOFT/Main.jsp. Domains, protocols and ports must match.
 ISC_RichTextEditor.js:85
isc_RichTextCanvas__setupEditArea ISC_RichTextEditor.js:85
isc_RichTextCanvas__frameLoaded ISC_RichTextEditor.js:50
onload
Uncaught TypeError: Object [object Window] has no method 'addEventListener' ISC_RichTextEditor.js:85
The same works on localhost. I have seen a similar Problem in earlier Posts, but there you say that it should be solved now.

Regards Bruno
Reply With Quote
  #2  
Old 27th Jun 2012, 03:43
brunostuder brunostuder is offline
Registered Developer
 
Join Date: May 2007
Posts: 33
Default

From the above website (195.48.43.52) RichTextEditor works with Firefox 13.0.1.

I also tested on another server, with v82p_2012-05-24. There I have the same Problem with Chrome and also an exception with Firefox. The exceptions are
Code:
uncaught exception: [Exception... "Access to property denied"  code: "1010" nsresult: "0x805303f2 (NS_ERROR_DOM_PROP_ACCESS_DENIED)"  location: "https://livestock.primegate.ch/opencrx-lifestock-MASOFT/isomorphic/system/modules/ISC_RichTextEditor.js?isc_version=8.2a Line: 161"]
https://livestock.primegate.ch/opencrx-lifestock-MASOFT/isomorphic/system/helpers/empty.html
Line 18
and
Code:
Unsafe JavaScript attempt to access frame with URL https://livestock.primegate.ch/opencrx-lifestock-MASOFT/isomorphic/system/helpers/empty.html from frame with URL https://livestock.primegate.ch/opencrx-lifestock-MASOFT/Main.jsp. Domains, protocols and ports must match.
Reply With Quote
  #3  
Old 27th Jun 2012, 12:01
Isomorphic Isomorphic is online now
Administrator
 
Join Date: May 2006
Posts: 30,594
Default

RichTextEditor needs to load a helper .html file on some browsers, and there is code inside this file to automatically sync document.domain. This code was revised in early June to work with document.domain settings that are just IPs. You may be using an older version - try verifying you have up to date files, and clearing your browser cache.

If that doesn't fix it, what is your setting for document.domain?
Reply With Quote
  #4  
Old 27th Jun 2012, 22:24
brunostuder brunostuder is offline
Registered Developer
 
Join Date: May 2007
Posts: 33
Default

I'm using the latest release (2 days old) and I verified that emtpy.html is same on all 3 domains.
I tested with IE9, Firefox 13 and Chrome 19 with these domains. Of course I did delete Browser caches before the tests

1. localhost -> works with all three browsers
2. 195.48.43.52 -> works with IE and Firefox but not with Chrome
3. livestock.primegate.ch -> works with IE but not with Firefox and Chrome

Finaly I removed the javascript code completly from emtpy.html and that worked perfect with all 3 browsers.

Last edited by brunostuder; 28th Jun 2012 at 01:21..
Reply With Quote
  #5  
Old 28th Jun 2012, 12:37
Isomorphic Isomorphic is online now
Administrator
 
Join Date: May 2006
Posts: 30,594
Default

Are you setting document.domain?

If so, what value are you setting it to?
Reply With Quote
  #6  
Old 28th Jun 2012, 23:01
brunostuder brunostuder is offline
Registered Developer
 
Join Date: May 2007
Posts: 33
Default

No, we don't set the document.domain. I verified that with logging it in empty.html, it's what we have in our website's url (see previous posts).
Reply With Quote
  #7  
Old 3rd Jul 2012, 14:50
Isomorphic Isomorphic is online now
Administrator
 
Join Date: May 2006
Posts: 30,594
Default

We've made a change to the 3.0p / 8.2p branch which should resolve this issue. This will be present in nightly builds going forward - if you continue to see it, please let us know.

Regards
Isomorphic Software
Reply With Quote
  #8  
Old 10th Jul 2012, 05:16
brunostuder brunostuder is offline
Registered Developer
 
Join Date: May 2007
Posts: 33
Default

Yes it works with v82p_2012-07-04 for our Browsers. But Firefox and Chrome complain a Exception in empty.html:

Code:
Uncaught SyntaxError: Invalid regular expression: missing / isomorphic/system/helpers/empty.html:4
Reply With Quote
  #9  
Old 16th Jul 2012, 10:55
Isomorphic Isomorphic is online now
Administrator
 
Join Date: May 2006
Posts: 30,594
Default

We've made a change to resolve this error. The fix will be present in nightly builds dated July 17 2012 and greater.

Regards
Isomorphic Software
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
TestNG Problem loading builtinTypes.xml azuniga Technical Q&A 7 18th Jun 2012 04:27
SmartClient Init: log4j.isc.config.xml not found in CLASSPATH edeandrea Technical Q&A 2 26th Apr 2012 11:38
Visual Builder hanging p27939 Installation 11 7th Mar 2012 11:08
SC_SNAPSHOT-2012-01-07_v82p missing files and not working RickBollinger Installation 23 13th Jan 2012 08:42
Problem loading builtinTypes.xml CI-CUBE Smart GWT Technical Q&A 1 2nd Sep 2010 10:08

© 2010,2011 Isomorphic Software. All Rights Reserved