Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    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

    #2
    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.

    Comment


      #3
      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?

      Comment


        #4
        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, 01:21.

        Comment


          #5
          Are you setting document.domain?

          If so, what value are you setting it to?

          Comment


            #6
            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).

            Comment


              #7
              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

              Comment


                #8
                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

                Comment


                  #9
                  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

                  Comment

                  Working...
                  X