Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Problem with window.opener.location.reload()

7 réponses
Avatar
Cybernet35
I convert my project from ASP.NET V1 to ASP.NET V2. I have a popup window
that refresh a parent page before closing herself.
Now my project in ASP.NET 2 the line code window.opener.location say me that
the object is null ??? I don't understand why. it's a standard call from
javascript, i often use before. So ?

Have an idea ?

7 réponses

Avatar
Patrice
It likely doesn't have anything to do with ASP.NET 2.0 as this is server
side. Note that 2.0 requires XP SP2. Have you installed XP SP2 since you
worked with ASP.NET 1 ?

You could test this in an HTM page to see how it behaves...

--
Patrice

"Cybernet35" a écrit dans le message
de news:
I convert my project from ASP.NET V1 to ASP.NET V2. I have a popup window
that refresh a parent page before closing herself.
Now my project in ASP.NET 2 the line code window.opener.location say me
that
the object is null ??? I don't understand why. it's a standard call from
javascript, i often use before. So ?

Have an idea ?


Avatar
Patrice
BTW Id didn't realized you posted in a French group. You may want to try an
English group instead...
--

"Patrice" a écrit dans le message de news:

It likely doesn't have anything to do with ASP.NET 2.0 as this is server
side. Note that 2.0 requires XP SP2. Have you installed XP SP2 since you
worked with ASP.NET 1 ?

You could test this in an HTM page to see how it behaves...

--
Patrice

"Cybernet35" a écrit dans le
message de news:
I convert my project from ASP.NET V1 to ASP.NET V2. I have a popup window
that refresh a parent page before closing herself.
Now my project in ASP.NET 2 the line code window.opener.location say me
that
the object is null ??? I don't understand why. it's a standard call from
javascript, i often use before. So ?

Have an idea ?






Avatar
Cybernet35
No, in fact it's seem the reason is because the hostname is not the same,
Firefox give an error : uncaught exception: [Exception... "Could not convert
JavaScript argument arg 0 [nsIDOMWindowInternal.alert]" nsresult: "0x80570009
(NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame ::
http://folders.axilog.biz/HTMLPage2.htm :: <TOP_LEVEL> :: line 8" data: no]

And IE give nothing.

I don't kow if it's possible to change window.opener.location when the
hostname are not the same.

"Patrice" wrote:

It likely doesn't have anything to do with ASP.NET 2.0 as this is server
side. Note that 2.0 requires XP SP2. Have you installed XP SP2 since you
worked with ASP.NET 1 ?

You could test this in an HTM page to see how it behaves...

--
Patrice

"Cybernet35" a écrit dans le message
de news:
>I convert my project from ASP.NET V1 to ASP.NET V2. I have a popup window
> that refresh a parent page before closing herself.
> Now my project in ASP.NET 2 the line code window.opener.location say me
> that
> the object is null ??? I don't understand why. it's a standard call from
> javascript, i often use before. So ?
>
> Have an idea ?





Avatar
Cybernet35
Je pensais qu'on parlait anglais partout...

"Patrice" wrote:

BTW Id didn't realized you posted in a French group. You may want to try an
English group instead...
--

"Patrice" a écrit dans le message de news:

> It likely doesn't have anything to do with ASP.NET 2.0 as this is server
> side. Note that 2.0 requires XP SP2. Have you installed XP SP2 since you
> worked with ASP.NET 1 ?
>
> You could test this in an HTM page to see how it behaves...
>
> --
> Patrice
>
> "Cybernet35" a écrit dans le
> message de news:
>>I convert my project from ASP.NET V1 to ASP.NET V2. I have a popup window
>> that refresh a parent page before closing herself.
>> Now my project in ASP.NET 2 the line code window.opener.location say me
>> that
>> the object is null ??? I don't understand why. it's a standard call from
>> javascript, i often use before. So ?
>>
>> Have an idea ?
>
>





Avatar
Patrice
Je continue en français donc. Cela ressemble bien effectivement à un
problème de sécurité. Tu pourrais alors modifier le contenu d'une fenêtre
qui était censé pointé sur un autre site.

De toute façon cela n'a rien à voir avec ASP.NET. C'est plutôt un rpoblème
client qui si il est nouveau, est porpbalbment causé par le SP2 de XP...

--

"Cybernet35" a écrit dans le message
de news:
No, in fact it's seem the reason is because the hostname is not the same,
Firefox give an error : uncaught exception: [Exception... "Could not
convert
JavaScript argument arg 0 [nsIDOMWindowInternal.alert]" nsresult:
"0x80570009
(NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame ::
http://folders.axilog.biz/HTMLPage2.htm :: <TOP_LEVEL> :: line 8" data:
no]

And IE give nothing.

I don't kow if it's possible to change window.opener.location when the
hostname are not the same.

"Patrice" wrote:

It likely doesn't have anything to do with ASP.NET 2.0 as this is server
side. Note that 2.0 requires XP SP2. Have you installed XP SP2 since you
worked with ASP.NET 1 ?

You could test this in an HTM page to see how it behaves...

--
Patrice

"Cybernet35" a écrit dans le
message
de news:
>I convert my project from ASP.NET V1 to ASP.NET V2. I have a popup
>window
> that refresh a parent page before closing herself.
> Now my project in ASP.NET 2 the line code window.opener.location say me
> that
> the object is null ??? I don't understand why. it's a standard call
> from
> javascript, i often use before. So ?
>
> Have an idea ?







Avatar
Cybernet35
Pourrais-tu m'indiquer la manière de demander le rechargement de la page
appelante ? Pour expliquer le contexte je passe d'un site web fait en ASP.Net
v2003 vers sa nouvelle version en Ajax, Atlas, V2005 petit à petit. J'ai donc
mon site web en production en V2003 qui appelle certains écrans d'un site web
en v2005. Suite à des mises à jours effectuées sur les écrans en V2 (par
popup), je souhaiterai que la page du site web V1 appelant la popup se
rafraîchisse ensuite sur fermeture du popup. Une idée ou conseil serait le
bienvenue, car là je sèche un peu...

Merci par avance.

"Patrice" wrote:

Je continue en français donc. Cela ressemble bien effectivement à un
problème de sécurité. Tu pourrais alors modifier le contenu d'une fenêtre
qui était censé pointé sur un autre site.

De toute façon cela n'a rien à voir avec ASP.NET. C'est plutôt un rpoblème
client qui si il est nouveau, est porpbalbment causé par le SP2 de XP...

--

"Cybernet35" a écrit dans le message
de news:
> No, in fact it's seem the reason is because the hostname is not the same,
> Firefox give an error : uncaught exception: [Exception... "Could not
> convert
> JavaScript argument arg 0 [nsIDOMWindowInternal.alert]" nsresult:
> "0x80570009
> (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame ::
> http://folders.axilog.biz/HTMLPage2.htm :: <TOP_LEVEL> :: line 8" data:
> no]
>
> And IE give nothing.
>
> I don't kow if it's possible to change window.opener.location when the
> hostname are not the same.
>
> "Patrice" wrote:
>
>> It likely doesn't have anything to do with ASP.NET 2.0 as this is server
>> side. Note that 2.0 requires XP SP2. Have you installed XP SP2 since you
>> worked with ASP.NET 1 ?
>>
>> You could test this in an HTM page to see how it behaves...
>>
>> --
>> Patrice
>>
>> "Cybernet35" a écrit dans le
>> message
>> de news:
>> >I convert my project from ASP.NET V1 to ASP.NET V2. I have a popup
>> >window
>> > that refresh a parent page before closing herself.
>> > Now my project in ASP.NET 2 the line code window.opener.location say me
>> > that
>> > the object is null ??? I don't understand why. it's a standard call
>> > from
>> > javascript, i often use before. So ?
>> >
>> > Have an idea ?
>>
>>
>>





Avatar
Patrice
Essaie peut-être :
http://groups.google.fr/group/fr.comp.lang.javascript/browse_thread/thread/758039a256bd5099/c5b2551c8271bb46?lnk=st&q=%22window.opener%22+domaine&rnum=2&hl=fr#c5b2551c8271bb46

En particulier :

"J'ai utilisé la methode document.domain
en placant ça dans chaque document on travaille sur le même domaine et on
peut donc échanger des infos entre pages d'un serveur different. "

Une autre option aurait pu être de passer le site en 2.0 d'abord puis
ensuite de le convertir en Atlas.
--
Patrice

"Cybernet35" a écrit dans le message
de news:
Pourrais-tu m'indiquer la manière de demander le rechargement de la page
appelante ? Pour expliquer le contexte je passe d'un site web fait en
ASP.Net
v2003 vers sa nouvelle version en Ajax, Atlas, V2005 petit à petit. J'ai
donc
mon site web en production en V2003 qui appelle certains écrans d'un site
web
en v2005. Suite à des mises à jours effectuées sur les écrans en V2 (par
popup), je souhaiterai que la page du site web V1 appelant la popup se
rafraîchisse ensuite sur fermeture du popup. Une idée ou conseil serait le
bienvenue, car là je sèche un peu...

Merci par avance.

"Patrice" wrote:

Je continue en français donc. Cela ressemble bien effectivement à un
problème de sécurité. Tu pourrais alors modifier le contenu d'une fenêtre
qui était censé pointé sur un autre site.

De toute façon cela n'a rien à voir avec ASP.NET. C'est plutôt un
rpoblème
client qui si il est nouveau, est porpbalbment causé par le SP2 de XP...

--

"Cybernet35" a écrit dans le
message
de news:
> No, in fact it's seem the reason is because the hostname is not the
> same,
> Firefox give an error : uncaught exception: [Exception... "Could not
> convert
> JavaScript argument arg 0 [nsIDOMWindowInternal.alert]" nsresult:
> "0x80570009
> (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame ::
> http://folders.axilog.biz/HTMLPage2.htm :: <TOP_LEVEL> :: line 8" data:
> no]
>
> And IE give nothing.
>
> I don't kow if it's possible to change window.opener.location when the
> hostname are not the same.
>
> "Patrice" wrote:
>
>> It likely doesn't have anything to do with ASP.NET 2.0 as this is
>> server
>> side. Note that 2.0 requires XP SP2. Have you installed XP SP2 since
>> you
>> worked with ASP.NET 1 ?
>>
>> You could test this in an HTM page to see how it behaves...
>>
>> --
>> Patrice
>>
>> "Cybernet35" a écrit dans le
>> message
>> de news:
>> >I convert my project from ASP.NET V1 to ASP.NET V2. I have a popup
>> >window
>> > that refresh a parent page before closing herself.
>> > Now my project in ASP.NET 2 the line code window.opener.location say
>> > me
>> > that
>> > the object is null ??? I don't understand why. it's a standard call
>> > from
>> > javascript, i often use before. So ?
>> >
>> > Have an idea ?
>>
>>
>>