Closed
Bug 156457
Opened 23 years ago
Closed 23 years ago
the opener results missing
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: lu_zero, Assigned: jst)
Details
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020709
BuildID:
you have that function in a frame:
<html>
<head>
<script language="javascript">
function lov() {
var
pippo=window.open("/pls/portal30/gap.cop.docente_lov","finestra","width=400,height=400,scrollbars=yes");
pippo.creator=self;
pippo.write=('hhh');
}
</script>
</head>
<body bgcolor="#CCFFFF">
<div align="center">
<form name="form_incarico" action="/pls/portal30/gap.cop.conferma"
method="post">
<input type="hidden" name="sdu" value="32">
<input type="hidden" name="cds" value="344">
<input type="hidden" name="cod_ins" value="05EDM">
<input type="hidden" name="anno_corso_ins" value="2">
<input type="hidden" name="id_org_prop" value="15">
<input type="hidden" name="id_inc" value="1">
<input type="hidden" name="matr_docente" value="">
<input type="hidden" name="bgcolor" value="CCFFFF">
<table width="100%">
<tr bgcolor="#0C27EF">
....
and the window that the lov() function opens has that code:
<html>
<head>
<script language="javascript">
function passBack(x,y) {
opener.form_incarico.docente.value = x ;
opener.form_incarico.matr_docente.value = y ;
window.close();
}
</script>
</head>
<body>
....
the javascrip console tell that:
Error: opener.form_incarico has no properties
Reproducible: Always
Steps to Reproduce:
Doesn't apply since is part of some internal administration applet at the
Politecnico di Torino
you have that function in a frame:
<html>
<head>
<script language="javascript">
function lov() {
var
pippo=window.open("/pls/portal30/gap.cop.docente_lov","finestra","width=400,height=400,scrollbars=yes");
pippo.creator=self;
pippo.write=('hhh');
}
</script>
</head>
<body bgcolor="#CCFFFF">
<div align="center">
<form name="form_incarico" action="/pls/portal30/gap.cop.conferma"
method="post">
<input type="hidden" name="sdu" value="32">
<input type="hidden" name="cds" value="344">
<input type="hidden" name="cod_ins" value="05EDM">
<input type="hidden" name="anno_corso_ins" value="2">
<input type="hidden" name="id_org_prop" value="15">
<input type="hidden" name="id_inc" value="1">
<input type="hidden" name="matr_docente" value="">
<input type="hidden" name="bgcolor" value="CCFFFF">
<table width="100%">
<tr bgcolor="#0C27EF">
....
and the window that the lov function opens has that code:
<html>
<head>
<script language="javascript">
function passBack(x,y) {
opener.form_incarico.docente.value = x ;
opener.form_incarico.matr_docente.value = y ;
window.close();
}
</script>
</head>
<body>
....
the javascrip console tell that:
Error: opener.form_incarico has no properties
Seems that is working on IE, I can't find another example of that behaviour in
other pages
Comment 1•23 years ago
|
||
Browser, not engine ---> DOM Level 0
Assignee: rogerl → jst
Component: JavaScript Engine → DOM Level 0
QA Contact: pschwartau → desale
![]() |
||
Comment 2•23 years ago
|
||
Shouldn't that be
opener.document.form_incarico
rather than
opener.form_incarico
? The latter is an IE-only thing....
![]() |
||
Comment 3•23 years ago
|
||
Marking invalid; the JS is buggy.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•