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

window.opener

3 réponses
Avatar
Billys600
je mets à jour une BD à partir d'un popup et je voudrai recharger un
dropdownlist qui se trouve dans ma page appelante sans avoir à recharger la
page toute entière
y at-il une astuce en passant par window.opener.document ...... ?????

Merci

3 réponses

Avatar
Paul Bacelar
Sinon, il y a les scripting CallBack
http://msdn.microsoft.com/msdnmag/issues/04/08/CuttingEdge/default.aspx

--
Paul Bacelar

"olivier hamou" wrote in message
news:#
Salut Billy


J'ai fait un javascript qui lance la function rech


function rech()
{
var ch = document.rech_form;
var validationúlse;

//document.write(document.rech_form.__VIEWSTATE.value);
document.rech_form.__VIEWSTATE.name="toto";
document.rech_form.__VIEWSTATE.value="";
document.rech_form.action = "tapageappellante.aspx";
document.rech_form.target = "biens";
document.rech_form.submit();
this.window.close();
}

ou sinon si tu ne veux pas envoyer de parametres tu as
window.opener.top.frames[1].document.location.href="tapageappellante.aspx";


Olivier





"Billys600" a écrit dans le message
de news:
je mets à jour une BD à partir d'un popup et je voudrai recharger un
dropdownlist qui se trouve dans ma page appelante sans avoir à recharger
la
page toute entière
y at-il une astuce en passant par window.opener.document ...... ?????

Merci
Avatar
Billys600
Désolé je ne vois pas comment ça marche
je cherche juste à appeler ma fonction "ChargerDropList()" qui se trouve sur
ma page mère (appelante) quand je click sur un bouton qui lui se trouve sur
ma page popup.

"Paul Bacelar" a écrit :

Sinon, il y a les scripting CallBack
http://msdn.microsoft.com/msdnmag/issues/04/08/CuttingEdge/default.aspx

--
Paul Bacelar

"olivier hamou" wrote in message
news:#
Salut Billy


J'ai fait un javascript qui lance la function rech


function rech()
{
var ch = document.rech_form;
var validationúlse;

//document.write(document.rech_form.__VIEWSTATE.value);
document.rech_form.__VIEWSTATE.name="toto";
document.rech_form.__VIEWSTATE.value="";
document.rech_form.action = "tapageappellante.aspx";
document.rech_form.target = "biens";
document.rech_form.submit();
this.window.close();
}

ou sinon si tu ne veux pas envoyer de parametres tu as
window.opener.top.frames[1].document.location.href="tapageappellante.aspx";


Olivier





"Billys600" a écrit dans le message
de news:
je mets à jour une BD à partir d'un popup et je voudrai recharger un
dropdownlist qui se trouve dans ma page appelante sans avoir à recharger
la
page toute entière
y at-il une astuce en passant par window.opener.document ...... ?????

Merci





Avatar
Paul Bacelar
Si votre fonction à appeler est coté client, en Jscript, laissez tomber et
appelez directement via window.opener.document.ChargerDropList().

--
Paul Bacelar

"Billys600" wrote in message
news:
Désolé je ne vois pas comment ça marche
je cherche juste à appeler ma fonction "ChargerDropList()" qui se trouve


sur
ma page mère (appelante) quand je click sur un bouton qui lui se trouve


sur
ma page popup.

"Paul Bacelar" a écrit :

> Sinon, il y a les scripting CallBack
> http://msdn.microsoft.com/msdnmag/issues/04/08/CuttingEdge/default.aspx
>
> --
> Paul Bacelar
>
> "olivier hamou" wrote in message
> news:#
> Salut Billy
>
>
> J'ai fait un javascript qui lance la function rech
>
>
> function rech()
> {
> var ch = document.rech_form;
> var validationúlse;
>
> //document.write(document.rech_form.__VIEWSTATE.value);
> document.rech_form.__VIEWSTATE.name="toto";
> document.rech_form.__VIEWSTATE.value="";
> document.rech_form.action = "tapageappellante.aspx";
> document.rech_form.target = "biens";
> document.rech_form.submit();
> this.window.close();
> }
>
> ou sinon si tu ne veux pas envoyer de parametres tu as
>


window.opener.top.frames[1].document.location.href="tapageappellante.aspx";
>
>
> Olivier
>
>
>
>
>
> "Billys600" a écrit dans le


message
> de news:
> je mets à jour une BD à partir d'un popup et je voudrai recharger un
> dropdownlist qui se trouve dans ma page appelante sans avoir à


recharger
> la
> page toute entière
> y at-il une astuce en passant par window.opener.document ...... ?????
>
> Merci
>
>
>