This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to get the reference of a hidden variable of the Opener Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "How to get the reference of a hidden variable of the Opener" Watch "How to get the reference of a hidden variable of the Opener" New topic
Author

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

Vikram Shirur
Ranch Hand

Joined: Jul 27, 2006
Posts: 33
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

Joined: Nov 08, 2001
Posts: 15357
    
    6
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

Joined: Jul 27, 2006
Posts: 33
Thanks a lot for the information....

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



Regards,

Vikram Shirur


SCJP 1.4
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to get the reference of a hidden variable of the Opener
 
Similar Threads
Moving data from popup to parent
problem on expect command
Do I need a separate Web Client?
Using a Dynamic Table on My JSP
source works - design doesnt (jbuilder)