• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

window.opener problem

 
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Ranchers.
I'm using a script where i want to get the values from a child page..
Features
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">
</form>

----------------------------------------------------------
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();
for(i=1;i<=count;i++)
{ var chk_box = 'document.form1.check' + i + '.status';
var x= i-1;
if(evalu(chk_box) == true) (evalu is actully eval)
{test[x] = 1;
}
else
{test[x] = 0;
}
}
alert(test);
window.opener.document.test.check_val.value= test;
window.opener.reload=true;
}

-----------------------------------------------------------------------
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...
regardz
Aravind
 
He repaced his skull with glass. So you can see his brain. Kinda like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic