This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes window.opener problem 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 "window.opener problem" Watch "window.opener problem" New topic

window.opener problem

Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 263
Dear Ranchers.
I'm using a script where i want to get the values from a child page..
1) There is a form and a text box in the parent page
the code in the parent page is
<form name="test">
<input type="text" name="check_val">

The child page is opening in the inline frame of the parent page.
there are 10 checkboxes. Actully the check boxes is populating from the database table.
the code i used in the child page is like this

function validate()
{var count = document.form1.cnt.value;
var test = new Array();
{ var chk_box = 'document.form1.check' + i + '.status';
var x= i-1;
if(evalu(chk_box) == true) (evalu is actully eval)
{test[x] = 1;
{test[x] = 0;
window.opener.document.test.check_val.value= test;

The function validate is written in the onclick of the checkbox.
the name of the check boxes will be check1,check2,check3 and so on..

Please help me ranchers.. to populate the value in the parent form field..
It is very urgent
Thanks in advance...
I agree. Here's the link:
subject: window.opener problem
Similar Threads
declaring array of values in a option tag
RegExp Help Needed!
Keyboard "Enter" doesn't work.
how to encrypt the text
form validator to check for alphabets in a text field