aspose file tools*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
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: 15376
    
    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://aspose.com/file-tools
 
subject: How to get the reference of a hidden variable of the Opener
 
Similar Threads
Do I need a separate Web Client?
source works - design doesnt (jbuilder)
problem on expect command
Using a Dynamic Table on My JSP
Moving data from popup to parent