Hello,
Here is a hard problem i cannot solve about window.opener method
I think you'll need to be a specialist to find the solution... i can't find
the solution by myself ! Please help me.
Here is the problem (quiet complicated to explain).
I use two differents servers with two IIS 4.0 Web servers
On the first one (let's name it Server1) i got my web site. On my web site,
i have a page (A.html) that calls (in javascript) a new window that loads a
PHP script that remains on the second server. Are you following me ?
On the second server (let's name it Server2) there is the so-called PHP
script "lookfor.php" that browse the system file of my server (of course i
needed to implement IIS and a virtual web site for it to work).
Let's recapitulate :
So in the A.html page on server1 there is a form (form1) with a field
(filed1) to be filled by an entry selected with lookfor.php. The call to the
script lookfor is done thanks to window.open (below) :
OnClick="javascript:winexp=window.open('http://server2/lookfor.php', ....);
winexp.parent=self;" ...
in the lookfor.php script (resident on Server2) there is a javascript code
as below that should fill field1 on the form1 of the opener window
window.opener.form1.field1.value=fileselectedbyuse r;
AND NOW... THE PROBLEM...
here is the question
When both the page and the script are on the same server, this is running
perfectly but if i use 2 servers as discribed up the field is never filled.
It seems as if window.opener.form1.field1.value=fileselectedbyuse r; makes an
exception a terminate the code (and the field1 is not filled). It also seems
as if the object Windows.opener doesn't exists !
Do you really think that it is a problem of 2 servers ? Is it possible to
make it run ? Did i forget a piece of code ?
Hope i was clear and you'll be able to help me. I can send you the code if
you need it !
Many thanks for yout help
Fabrice
PS : Please excuse my bad english.