title: How to communicate between frames?
body: <p>I'm maintaining an application that goes sort of like this:</p>
  
  <p>There is a Page A with a Frame that shows Page B. Now page B is part of a completely different product in a separate domain.</p>
  
  <p>Now, they want that when an option in B is clicked, the WHOLE page is redirected to another page in A. The problem is that the url of A is something like <code>www.client.A.com/Order/Details/123</code>, and when we click in be it should redirect to something like <code>www.client.A.com/Order/Edit/123</code> but B doesn't know anything about A. It doesn't know which order # is currently selected or anything about A. Page A who has the frame B does know it.</p>
  
  <p>For now my solution has been to just redirect to the AllOrders so something like  client.MyCompany/Orders</p>
  
  <p>but since B doesn't know which <code>client</code> is calling it (its a multi-tenant app), I'll add it in the webconfig. (so each client has its own webconfig with a different value).</p>
  
  <p>I dont find this solution optimal but I can't think of anything else! I already tried putting the needed url in page A in a hidden Div (since A does know all the info) and then trying to read the whole DOM of the page from B to find it.... unfortunately I can only get access to Frame B's DOM... (I tried with jquery).</p>
  
  <p>I know frames are evil, but this is how it is written... any ideas?</p>
  
  <p>Thanks!</p>