Jump to content

Trouble with framesets


Yarnell

Recommended Posts

Hey all,

I am trying to load the index file into a frameset that consists of 2 frames but I am unable to do so. It keeps redirecting me to the index file.

I have narrowed it dow to the following pice of code inside the https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js file

                bindReady: function() {
                    if (!A) {
                        A = e.Callbacks("once memory");
                        if (c.readyState === "complete") return setTimeout(e.ready, 1);
                        if (c.addEventListener) c.addEventListener("DOMContentLoaded", B, !1), a.addEventListener("load", e.ready, !1);
                        else if (c.attachEvent) {
                            c.attachEvent("onreadystatechange", B), a.attachEvent("onload", e.ready);
                            var b = !1;
                            try {
                                b = a.frameElement == null
                            } catch (d) {}
                            c.documentElement.doScroll && b && J()
                        }
                    }
                },

When I comment this piece out I am able to load the index file into the frame... however I loose recapcha and other functionalities.

any way to make this work?

Thanks.

Link to comment
Share on other sites

In CubeCart's primary documents (index.php and admin_HaShEd.php), a header named 'X-Frame-Options' is set to "SAMEORIGIN". (Your web server may also be configured to always add this header to responses.)

As such, if the visitor's browser (if it supports this directive) cannot be convinced to invisibly override this directive in order to show sources from other origins, what the browser will actually do about it is something I am not at all able to give any advice.

You can try removing that statement in index.php.

 

 

Link to comment
Share on other sites

Just in  cast to anyone stumbles on this post I did find a solution. In version 6.5.1 you will find the following code

/js/common.js

if (top.location.href!=self.location.href) {
top.location = self.location.href;
}

I just commented it out like so

/* if (top.location.href!=self.location.href) {
top.location = self.location.href;
}*/

 Happy coding 🙂

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...