How to set Window.Opener to set a specific frame in a window
Posted on 2008-10-30
Client's System: SAP OCI (SRM)
Project: I work for a printing company and I am trying to integrate our online ordering system with one of customers SAP system using SAP OCI process. Our customer's employees visit the SAP system of the client and click on a link to be redirected to our website. Once in our website, the user completes the order and checks out of our system. When a user checks out of our system, he will be automatically redirected to the client's website and the shopping cart will be updated on our customer's end.
What is passed between the two websites: Our client's system passes a HookURL each time a user comes in and during the check out process we setup the Window.Opener to the HOOKURL so the shopping cart is automatically updated.
window.opener.location.href = HOOK_URL;
Challenge: Everything works, but one SMALL issue. Once my window passes the reference to the Window.Opener, it does not point to the right frame. It refreshes the whole Window instead of the actual frame that has opened this pop up.
Can someone help