Capture URL page précédente
ben.popeye Membre non connecté
-
Modérateur
- Voir le profil du membre ben.popeye
- Inscrit le : 04/08/2005
- Site internet
- Groupes :
-
Equipe Historique
Reprise du message précédent
Ceci devrait marcher :[code]window.location.href.replace(//loginuser/g, "");[/code]
Un problème, une question ? Cherchez dans la FAQ ou la documentation. Si vous ne trouvez pas la réponse, demandez du support sur le forum.
Bjarne Stroustrup, inventeur du C++ :"There are two ways to write error-free programs; only the third works."
nico69v Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre nico69v
- Inscrit le : 07/01/2006
Il faut arriver au resultat que lorsque l'on click sur le bouton on accede dans un nouveau navigateur a la requette initiale.
Merci
Ci après le code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Logged in</title>
<script language="JavaScript">
<!--
function acceder
{
window.location.href.replace(//loginuser/g, "");
}
// -->
</script>
</head>
<!--
FormLogin.html is used for form-based authentication.
Not for HTTP Basic Auth.
It is displayed when unauthenticated users surf to "/".
Users already logged on are served LoginAlreadyDone.html
FormLogin.html should post a "Username" and "Password"
value to "/loginuser/".
-->
<body>
<p> </p>
<table width="618" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="618">
<p> </p>
<table cellpadding="0" cellspacing="0">
<tr>
<td width="619">
<table width="287" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="277"><img src="http://www.novatra.eu/logo.jpg" border="0"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="619"> </td>
</tr>
<tr>
<td width="619">
<table align=center border=0>
<tr>
<td align=center>
<table align=center>
<tr>
<td align=center>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-outline-level:3'><b><span style='font-size:13.5pt;font-family:"Times New Roman"'>Identification
Acceptée<o
></o
></span></b></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-family:"Times New Roman"'>Vous avez maintenant accès à cette
ressource<br>
suivant vos autorisations.<o
></o
></span></p><form name="form1">
<p><input type="button" name="button1" value="Accèder" OnClick="acceder('acceder')"><br><br>
<span style='font-family:"Times New Roman"'>Pensez à vous
déconnecter afin de<br>
protéger l'accès à vos ressources.</span></p>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="619"> </td>
</tr>
</table>
</td>
</tr>
</table>
<p>
</p>
<p> </p>
</body>
</html>
ben.popeye Membre non connecté
-
Modérateur
- Voir le profil du membre ben.popeye
- Inscrit le : 04/08/2005
- Site internet
- Groupes :
-
Equipe Historique
Il faut donc mettre
[code]<input type="button" name="button1" value="Accèder" onclick="window.location.href.replace(//loginuser/g, '');">[/code]
J'espère que ceci fonctionnera.
Un problème, une question ? Cherchez dans la FAQ ou la documentation. Si vous ne trouvez pas la réponse, demandez du support sur le forum.
Bjarne Stroustrup, inventeur du C++ :"There are two ways to write error-free programs; only the third works."
nico69v Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre nico69v
- Inscrit le : 07/01/2006
Je remet le code complet de la page si tu peux tester.
Merci A+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Logged in</title>
</head>
<!--
FormLogin.html is used for form-based authentication.
Not for HTTP Basic Auth.
It is displayed when unauthenticated users surf to "/".
Users already logged on are served LoginAlreadyDone.html
FormLogin.html should post a "Username" and "Password"
value to "/loginuser/".
-->
<body>
<p> </p>
<table width="618" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="618">
<p> </p>
<table cellpadding="0" cellspacing="0">
<tr>
<td width="619">
<table width="287" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="277"><img src="http://www.novatra.eu/logo.jpg" border="0"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="619"> </td>
</tr>
<tr>
<td width="619">
<table align=center border=0>
<tr>
<td align=center>
<table align=center>
<tr>
<td align=center>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
mso-outline-level:3'><b><span style='font-size:13.5pt;font-family:"Times New Roman"'>Identification
Acceptée<o
></o
></span></b></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-family:"Times New Roman"'>Vous avez maintenant accès à cette
ressource<br>
suivant vos autorisations.<o
></o
></span></p><form name="form1">
<p><input type="button" name="button1" value="Accèder" onclick="window.location.href.replace(//loginuser/g, '');"><br><br>
<span style='font-family:"Times New Roman"'>Pensez à vous
déconnecter afin de<br>
protéger l'accès à vos ressources.</span></p>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="619"> </td>
</tr>
</table>
</td>
</tr>
</table>
<p>
</p>
<p> </p>
</body>
</html>
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie