Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

history.back and different domanin

 
Anoop Krishnan
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my index.jsp output file(a simple html).
I have to different frames.The top frame has some navigation buttons which can change the content of the bottom frame.One button on the top frame simulates history.back in the bottom frame.
This works fine if page opened in the bottom frame are from the same domain as the index.jsp page, but if I load a page from a different domain to this frame the history.back gives a Java Script error calle Access is Denied
Do you have any idea why this can happen and is there any solution to fix this.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Security issue...You can not go outside your domain and control the application. Once it goes out, you give up all right on it.
Eric
NOTE: ~Bear~ (Move to JS)
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65223
95
IntelliJ IDE Java jQuery Mac Mac OS X
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic