Window.location et firefox

cs_8livier Messages postés 13 Date d'inscription mardi 10 mai 2005 Statut Membre Dernière intervention 9 mai 2009 - 14 juin 2005 à 23:22
cs_8livier Messages postés 13 Date d'inscription mardi 10 mai 2005 Statut Membre Dernière intervention 9 mai 2009 - 15 juin 2005 à 12:06
bonjour,

un petit probleme avec firefox....

window.location=formulaire.commune.options[formulaire.commune.selectedIndex].value;

ne fonctionne pas....Que faut il faire pour effectuer une redirection sous firefox???

2 réponses

hippyz Messages postés 56 Date d'inscription vendredi 21 mai 2004 Statut Membre Dernière intervention 7 mai 2006
15 juin 2005 à 10:10
je ne comprends pas ta redirection avec ton option sinon c'est widow.location.href="maPage.htm";
0
cs_8livier Messages postés 13 Date d'inscription mardi 10 mai 2005 Statut Membre Dernière intervention 9 mai 2009
15 juin 2005 à 12:06
j'ai trouvé la solution:
en Head=>
function ChangeUrl(formulaire)
{
location.href = formulaire;
}

en body=>
<FORM>
<SELECT NAME="ListeUrl" SIZE=1 onChange="ChangeUrl(form.ListeUrl.options[form.ListeUrl.selectedIndex].value)">
<OPTION SELECTED VALUE="">-Selectionnez une association-
<?php
connection();
$liste=mysql_query("SELECT a.Nom, b.Nom_Secteur FROM Clients a, Activite_Client b WHERE b.Nom_Secteur='Association' AND a.ID_Client = b.ID_Client")or die ('probleme avec la base Clients');
while($association=mysql_fetch_array($liste)){
echo"<option value="Association.php?Nom=".$association['Nom']."">".$association['Nom'];
}
deconnection();
?>
</select>
</form>
0
Rejoignez-nous