Click here to Skip to main content
       

Java

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Questioninteracting with parentmemberjan212r2 Aug '12 - 7:11 
Hi,
 
i have a main webpage with this code
<input type="button" value="Maak een bord positie code" onClick="window.open('makeboard.html','makeposition',' width=500,height=700');"> 
 
my form is, i think well formed
<form name="post" action="add.php" method="post" name="myform" id="myform">
and also closed
 
On the child form I have some code
var pa=parent.document.getElementById('myform')
 
However the var pa is empty.
 
has someone an idee what is wrong?
 
Jan
AnswerRe: interacting with parentmemberNagy Vilmos2 Aug '12 - 20:40 
Are you sure this is java? Looks more like javascript.


Panic, Chaos, Destruction. My work here is done.
Drink. Get drunk. Fall over - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer
Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

GeneralRe: interacting with parentmemberjan212r2 Aug '12 - 21:09 
Your right. It's javascript. I didn't know there is another forum for javascript. However I found it after days of looking I posted the question and today I found that I must use 'window.opener.document'
 
Jan
 
PS: If there is an admin he/she may move the message to the correct forum Smile | :)
GeneralRe: interacting with parentmemberNagy Vilmos2 Aug '12 - 21:19 
Okay. The admins may or may not move this, it depends on getting them sober enough for long enough. Big Grin | :-D
 
BTW, I did not 1 vote your question, I will counter it as it is not deserved.


Panic, Chaos, Destruction. My work here is done.
Drink. Get drunk. Fall over - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer
Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 18 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid