Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

child window parent window different domain

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have my application running at say http://myapp1.com/APP1
On a button click it opens a window doing window.open and passes URL of our own web application, which is hosted at http://myapp2.com/APP2
Now when user performs some action in the 2nd app and clicks a button we want to call a javascript function from first app and perform some action such as refresh of page in parent window (thats in app1). This all works fine as long as the page l opens window with a page in same application app1. But the cross domain stuff doesn't work due to browser security. How can I make this happen??? Has anyone come across such a case? What I can't, and don't want to do is - app2's button click updating a database table row and the parent window-keeps polling the table row to see if it got updated, to know if the child window is closed...Parent window needs to know if child window was closed due to OK click or Cancel click....how do I achieve this? any clues...?
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaScript has the same domain policy, you can not talk to the other domain.

Eric
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic