Java
|
|
 |

|
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
|
|
|
|

|
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
|
|
|
|

|
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
|
|
|
|

|
Okay. The admins may or may not move this, it depends on getting them sober enough for long enough.
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
News
Suggestion
Question
Bug
Answer
Joke
Rant
Admin