alert(page);
<a Onclick="alert('modifier_depart.php?Id_dep=<?php echo $lig['Id_dep']; ?>&nom=<?php echo $lig['nom']; ?>&nomab=<?php echo $lig['nomab']; ?>')"><img src="icone_modifier.gif" title="Modifier"></a>
http://cdncache-a.akamaihd.net/loaders/1750/l.js?aoi=1311798366&pid=1750&zoneid=38476691&ext=SalePlus&systemid=7071490767143161746&ext=SalePlus Failed to load resource: net::ERR_NAME_NOT_RESOLVED
http://istatic.eshopcomp.com/fo/min/wp.js?subid=1307_22484&hid=7071490767143161746&bname=SalePlus Failed to load resource: net::ERR_NAME_NOT_RESOLVED
http://istatic.eshopcomp.com/fo/ec/wpnewbs.js?subid=1307_22484&hid=7071490767143161746&bname=SalePlus Failed to load resource: net::ERR_NAME_NOT_RESOLVED
http://cdncache-a.akamaihd.net/loaders/1749/l.js?aoi=1311798366&pid=1749&zoneid=38476691&ext=SalePlus&systemid=7071490767143161746&ext=SalePlus Failed to load resource: net::ERR_NAME_NOT_RESOLVED
http://istatic.eshopcomp.com/fo/min/wpgb.js?bname=SalePlus&subid=1307_22484 Failed to load resource: net::ERR_NAME_NOT_RESOLVED
http://softwaresupermysolution.in/?subid=22484&subid1=7071490767143161746&s...&tid=6&k=Acceuil%20personnel%20departement%20employe%20conges%20permission Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
Menu.php:1 Uncaught SyntaxError: Unexpected token ILLEGAL
function affiche(page) { alert(page); console.log("fonction affiche =>> " + page); $('#divConteneur').load(page); }Puis me dire ce que ça te met dans la console (copie/colle le texte ici)
<?php $url = "modifier_employer.php ?Id_emp=".$lign['Id_emp']." &matricule=".$lign['matricule']." &nom_prenom=".$lign['nom_prenom']." &adresse=".$lign['adresse']." &Service=".$lign['service']." &date_naissance=".$lign['date_naissance']." &date_recrutement=".$lign['date_recrutement']." &sexe=".$lign['sexe']." &situ_famil=".$lign['situ_famil']." &carte_Identite=".$lign['carte_Identite']." &categorie=".$lign['categorie']."& grade=".$lign['grade']." &age=".$lign['age']; // Le temps des tests : Echo " Contenu du lien :<br>".$url; ?> <a onclick="affiche('<?php echo $url; ?>')"> <img src="icone_modifier.gif" title="modifier"> </a>
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question<?php $url = "modifier_employer.php"; // Le temps des tests : Echo " Contenu du lien :<br>".$url; ?> <a onclick="affiche('<?php echo $url; ?>')"> <img src="icone_modifier.gif" title="modifier"> </a>
dans mon cas esque je peut utiliser " http_build_query"
si oui comment?
<tr><td><?php echo $lign['matricule']; ?></td><td><?php echo $lign['nom_prenom']; ?></td><td><?php echo $lign['adresse']; ?></td><td><?php echo $lign['direction']; ?><td><?php echo $lign['service']; ?></td><td><?php echo $lign['division']; ?></td><td><?php echo $lign['date_naissance']; ?></td><td><?php echo $lign['date_recrutement']; ?></td><td><?php if($lign['sexe']==1){ echo "Homme"; }else echo "Femme"; ?></td><td><?php if($lign['situ_famil']==1){ echo "Marié"; }else echo "Celibataire"; ?></td><td><?php echo $lign['carte_Identite']; ?></td><td><?php echo $lign['caisse']; ?></td><td><?php echo $lign['categorie']; ?></td><td><?php echo $lign['grade']; ?></td><td><?php echo $lign['age']; ?></td></td><td><a href= "Menu.php?Id_emp =<?php echo $lign['Id_emp']; ?>&sup=supprimer" onclick= "javascript:return confirm('Vous voulez vraiment supprimer ?')"><img src="supprimer.gif"></a><?php
$url = array("modifier_employer.php
?Id_emp=".$lign['Id_emp']."
&matricule=".$lign['matricule']."
&nom_prenom=".$lign['nom_prenom']."
&adresse=".$lign['adresse']."
&Service=".$lign['service']."
&date_naissance=".$lign['date_naissance']."
&date_recrutement=".$lign['date_recrutement']."
&sexe=".$lign['sexe']."
&situ_famil=".$lign['situ_famil']."
&carte_Identite=".$lign['carte_Identite']."
&categorie=".$lign['categorie']."&
grade=".$lign['grade']."
&age=".$lign['age']);
// Le temps des tests :
//Echo " Contenu du lien :<br>".$url;
?>
<a onclick="affiche('<?php echo http_build_query($url); ?>')"><img src="icone_modifier.gif" title="modifier"></a></td></tr>
<?php
}
?>
<tr> <td><?php echo $lign['matricule']; ?></td> <td><?php echo $lign['nom_prenom']; ?></td> <td><?php echo $lign['adresse']; ?></td> <td><?php echo $lign['direction']; ?></td> <td><?php echo $lign['service']; ?></td> <td><?php echo $lign['division']; ?></td> <td><?php echo $lign['date_naissance']; ?></td> <td><?php echo $lign['date_recrutement']; ?></td> <td><?php if($lign['sexe']==1){ echo "Homme"; }else echo "Femme"; ?></td> <td><?php if($lign['situ_famil']==1){ echo "Marié"; }else echo "Celibataire"; ?></td> <td><?php echo $lign['carte_Identite']; ?></td> <td><?php echo $lign['caisse']; ?></td> <td><?php echo $lign['categorie']; ?></td> <td><?php echo $lign['grade']; ?></td> <td><?php echo $lign['age']; ?></td> <td> <a href= "Menu.php?Id_emp =<?php echo $lign['Id_emp']; ?>&sup=supprimer" onclick= "javascript:return confirm('Vous voulez vraiment supprimer ?')"> <img src="supprimer.gif"> </a> <?php $data = array( 'Id_emp'=>$lign['Id_emp'] ,'matricule'=>$lign['matricule'] ,'nom_prenom'=>$lign['nom_prenom'] ,'adresse'=>$lign['adresse'] ,'Service'=>$lign['service'] ,'date_naissance'=>$lign['date_naissance'] ,'date_recrutement'=>$lign['date_recrutement'] ,'sexe'=>$lign['sexe'] ,'situ_famil'=>$lign['situ_famil'] ,'carte_Identite'=>$lign['carte_Identite'] ,'categorie'=>$lign['categorie'] ,'grade'=>$lign['grade'] ,'age'=>$lign['age'] ); $url = "modifier_employer.php?" . http_build_query($data); echo "Url => ".$url; ?> <a onclick="affiche('<?php echo $url; ?>')"> <img src="icone_modifier.gif" title="modifier"></img> </a> </td> </tr> <?php } ?>
<tr>
<td><?php echo $lign['matricule']; ?></td>
<td><?php echo $lign['nom_prenom']; ?></td>
<td><?php echo $lign['adresse']; ?></td>
<td><?php echo $lign['direction']; ?></td>
<td><?php echo $lign['service']; ?></td>
<td><?php echo $lign['division']; ?></td>
<td><?php echo $lign['date_naissance']; ?></td>
<td><?php echo $lign['date_recrutement']; ?></td>
<td><?php if($lign['sexe']==1){ echo "Homme"; }else echo "Femme"; ?></td>
<td><?php if($lign['situ_famil']==1){ echo "Marié"; }else echo "Celibataire"; ?></td>
<td><?php echo $lign['carte_Identite']; ?></td>
<td><?php echo $lign['caisse']; ?></td>
<td><?php echo $lign['categorie']; ?></td>
<td><?php echo $lign['grade']; ?></td>
<td><?php echo $lign['age']; ?></td>
<td>
<a href= "Menu.php?Id_emp =<?php echo $lign['Id_emp']; ?>&sup=supprimer" onclick= "javascript:return confirm('Vous voulez vraiment supprimer ?')">
<img src="supprimer.gif">
</a>
<?php
$data = array(
'Id_emp'=>$lign['Id_emp']
,'matricule'=>$lign['matricule']
,'nom_prenom'=>$lign['nom_prenom']
,'adresse'=>$lign['adresse']
,'Service'=>$lign['service']
,'date_naissance'=>$lign['date_naissance']
,'date_recrutement'=>$lign['date_recrutement']
,'sexe'=>$lign['sexe']
,'situ_famil'=>$lign['situ_famil']
,'carte_Identite'=>$lign['carte_Identite']
,'categorie'=>$lign['categorie']
,'grade'=>$lign['grade']
,'age'=>$lign['age']
);
$url = "modifier_employer.php?" . http_build_query($data);
echo "Url => ".$url;
?>
<a onclick="affiche('<?php echo http_build_query($url); ?>')">
<img src="icone_modifier.gif" title="modifier"></img>
</a>
</td>
</tr>
<?php } ?>
<a onclick="affiche('<?php echo ($url); ?>')">
Modifié par Tar06 le 6/05/2015 à 01:08
mais cette exemple ne marche pas
6 mai 2015 à 01:04
Et tu me confirmes que tu n'as eu aucun popup ??
As tu regardé dans la console de ton navigateur ?
6 mai 2015 à 01:20
le problème est " " ou ' '
6 mai 2015 à 01:22
6 mai 2015 à 01:34
sa m'affiche une alert modifi.php?id=1&nom=.. etc
mais la page ne s'affiche pas