Evenement onclick

cs_salim81 Messages postés 78 Date d'inscription mardi 6 juin 2006 Statut Membre Dernière intervention 26 septembre 2007 - 16 juil. 2007 à 18:23
cs_bultez Messages postés 13615 Date d'inscription jeudi 13 février 2003 Statut Membre Dernière intervention 15 octobre 2013 - 17 juil. 2007 à 05:07
bonjour a tous;

je cherche comment associé a un evenement onclick l'execution d'un
script php.en effet:j'ai dans ma partie sommaire de ma frame un lien
comme ça:

<TR 
onClick="javascript:parent.frames[1].location='page1.php'"><Th>Execute</Th></TR>

mon probleme c'est que je veux lors d'un click je peux executer au meme temps  page1.php plus un autre script script2.php.

merci.

1 réponse

cs_bultez Messages postés 13615 Date d'inscription jeudi 13 février 2003 Statut Membre Dernière intervention 15 octobre 2013 30
17 juil. 2007 à 05:07
Bonjour,
    ...onclick='window.open("script2.php"); parent.frames[1].location='page1.php';"...
    ou alors ajax ( xmlhttprequest )
<hr />


Cordialement                Bul     [mon Site]     [M'écrire]



<hr />
0
Rejoignez-nous