• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get the reference of a hidden variable of the Opener

 
Vikram Shirur
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...

I have a JSP(Opener) and its URL is "http://192.168.xx.xx/ttm/Login"
and have a link on the page....

When I click on the link it open a new page.... and its URL is
"http://69.68.xx.xx/ttm/register"....

I have a hidden variable in the Opener.... I want to access it in the newly opened window...

How do I get the reference to the hidden varible of the Opener...

The problem is with the IP.... there are two different IP's
"http://69.68......" & "http://192.168.....".... this is causing the problem...

Can we get the reference of the Opener irrespective of the IP's


Please Help,

Thanks,

Vikram Shirur


SCJP 1.4
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Differetn IPs mean different domains means it breaks JavaScript's same domain policy. Therfore you will not be able to get the value this way.

Eric
 
Vikram Shirur
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for the information....

I did not know about the "JavaScript's same domain policy"



Regards,

Vikram Shirur


SCJP 1.4
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic