IdentifiantMot de passe
Loading...
Mot de passe oubli� ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les r�ponses en temps r�el, voter pour les messages, poser vos propres questions et recevoir la newsletter

JavaScript Discussion :

Comportement incompr�hensible de ma page


Sujet :

JavaScript

Vue hybride

Message pr�c�dent Message pr�c�dent   Message suivant Message suivant
  1. #1
    Membre Expert
    Avatar de pc75
    Profil pro
    Inscrit en
    Septembre 2004
    Messages
    3 662
    D�tails du profil
    Informations personnelles :
    �ge : 70
    Localisation : France, Paris (�le de France)

    Informations forums :
    Inscription : Septembre 2004
    Messages : 3 662
    Par d�faut Comportement incompr�hensible de ma page
    Bonjour,

    Voila un extrait d'une page g�n�r�e par de l'ASP.
    Code : S�lectionner tout - Visualiser dans une fen�tre � part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
     
    <html>
    <head>
    </head>
    <script language="JavaScript">
    function Retour()
    	{
    	document.frmSaisie.action = 'Default.asp';
    	document.frmSaisie.submit();
    	}
     
    function Supprimer(Num)
    	{
    	var Reponse = window.confirm("Confirmez la suppression de cette fiche.");
    	if (Reponse)
    		{
    		document.frmSaisie.txtCompteur.value = Num;
    		document.frmSaisie.action = 'SqlDelete.asp';
    		document.frmSaisie.submit();
    		}
    	}
    </script>
     
    <body bgcolor="#ECF4FF" onMouseOver="window.status='XXX'; return true;">
    <br>
    <p align="center">
    <font face="Arial" color="" size="3">
    <strong>
    Liste des fiches
    </strong>
    </font>
    </p>
    <form name="frmSaisie" method="post" action>
    	<input type="hidden" name="txtCompteur">
    		<table align="center" border="4" width="75%" bgcolor="" bordercolordark="">
    			<tr>
    				<td>
    					<a href="Liste.asp?Tri=Numero" title="Trier par numéro">
    					<font face="Arial" color="#0099CC" size="3">
    					<strong>
    					N°
    					</strong>
    					</font>
    					</a>
    				</td>
    				<td>
    					<a href="Liste.asp?Tri=Nom" title="Trier par nom">
    					<font face="Arial" color="#0099CC" size="3">
    					<strong>
    					Nom
    					</strong>
    					</font>
    					</a>
    				</td>
    				<td>
    					&nbsp;
    				</td>
    			</tr>
    			<tr BGCOLOR="">
    				<td>
    					<font face="Arial" color="#0099CC" size="3">
    					<strong>
    					01
    					</strong>
    					</font>
    				</td>
    				<td>
    					<font face="Arial" color="#0099CC" size="3">
    					<strong>
    					Acier
    					</strong>
    					</font>
    				</td>
    				<td align="center" width="25">
    					<span style="cursor:hand;">
    					<img src="Images/u_del.gif" alt="Supprimer" OnClick="Supprimer(01)" WIDTH="12" HEIGHT="12">
    					</span>
    				</td>
    			</tr>
    			<tr BGCOLOR="#BAE2E3">
    				<td>
    					<font face="Arial" color="#0099CC" size="3">
    					<strong>
    					02
    					</strong>
    					</font>
    				</td>
    				<td>
    					<font face="Arial" color="#0099CC" size="3">
    					<strong>
    					Fer
    					</strong>
    					</font>
    				</td>
    				<td align="center" width="25">
    					<span style="cursor:hand;">
    					<img src="Images/u_del.gif" alt="Supprimer" OnClick="Supprimer(02)" WIDTH="12" HEIGHT="12">
    					</span>
    				</td>
    			</tr>
    		</table>
    		<br><br>
    		<p align="center">
    			<span style="cursor:hand;">
    			<img src="Images/retour.gif" alt="Retour" OnClick="Retour()" border="0" WIDTH="100" HEIGHT="25">
    			</span>
    		</p>
    </form>
    </body>
    </html>
    Sur le poste d'un utilisateur, le clic sur l'icone de suppression (en fin de ligne) ne fonctionne pas. La fen�tre de confirmation ne s'affiche pas.
    Par contre le clic sur l'image "Retour" fonctionne bien.

    Quelqu'un a d�j� vu ce genre de comportement ?
    Je n'arrive pas � reproduire ce ph�nom�ne sur mon poste.

    Merci.

  2. #2
    Membre �m�rite
    Avatar de dkmix
    Profil pro
    Inscrit en
    Septembre 2007
    Messages
    619
    D�tails du profil
    Informations personnelles :
    Localisation : Jama�que

    Informations forums :
    Inscription : Septembre 2007
    Messages : 619
    Par d�faut
    Bonjour,
    Sous quel navigateur ?
    Par exemple, Chrome propose � l'utilisateur de ne plus afficher la boite de dialogue.

  3. #3
    Membre Expert
    Avatar de pc75
    Profil pro
    Inscrit en
    Septembre 2004
    Messages
    3 662
    D�tails du profil
    Informations personnelles :
    �ge : 70
    Localisation : France, Paris (�le de France)

    Informations forums :
    Inscription : Septembre 2004
    Messages : 3 662
    Par d�faut
    Avec IE8.

  4. #4
    R�dacteur

    Avatar de Bovino
    Homme Profil pro
    D�veloppeur Web
    Inscrit en
    Juin 2008
    Messages
    23 647
    D�tails du profil
    Informations personnelles :
    Sexe : Homme
    �ge : 55
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activit� : D�veloppeur Web
    Secteur : High Tech - �diteur de logiciels

    Informations forums :
    Inscription : Juin 2008
    Messages : 23 647
    Billets dans le blog
    20
    Par d�faut
    Commence par rendre ton code "coh�rent" : mets un doctype, place la balise <script> � un endroit autoris� (en oubliant l'attribut language obsol�te depuis longtemps) sans parler de la mise en forme par balises l� aussi obsol�te depuis longtemps.
    Pas de question technique par MP !
    Tout le monde peut participer � developpez.com, vous avez une id�e, contactez-moi !
    Mes formations video2brain : La formation compl�te sur JavaScriptJavaScript et le DOM par la pratiquePHP 5 et MySQL : les fondamentaux
    Mon livre sur jQuery
    Module Firefox / Chrome d'int�gration de JSFiddle et CodePen sur le forum

  5. #5
    Membre Expert
    Avatar de pc75
    Profil pro
    Inscrit en
    Septembre 2004
    Messages
    3 662
    D�tails du profil
    Informations personnelles :
    �ge : 70
    Localisation : France, Paris (�le de France)

    Informations forums :
    Inscription : Septembre 2004
    Messages : 3 662
    Par d�faut
    Ok pour tout �a.
    Que veux tu dire par "mise en forme par balises" ?
    Sinon, il s'agit d'un site sur un petit intranet avec quelques utilisateurs. Ma question serait plut�t de savoir s'il n'y aurait pas une option dans le param�trage de IE qui provoquerait ce comportement.

  6. #6
    Membre Expert
    Avatar de pc75
    Profil pro
    Inscrit en
    Septembre 2004
    Messages
    3 662
    D�tails du profil
    Informations personnelles :
    �ge : 70
    Localisation : France, Paris (�le de France)

    Informations forums :
    Inscription : Septembre 2004
    Messages : 3 662
    Par d�faut
    Bonjour,

    Je reviens vers vous, car je n'ai toujours pas r�solu mon probl�me.
    Ce "bug" se produit sur le poste d'UN utilisateur.
    Dans le code ci-dessous, si je mets le document.write(), �a m'affiche bien les points d'interrogation. Donc, ma fonction est bien ex�cut�e.
    Si je mets un simple alert(), la boite de dialogue ne s'affiche pas.

    On dirait que IE assimile ces boites de dialogue � des fen�tres de pub !
    Je me demande s'il n'y aurait pas une histoire de param�trage de IE ?

    Code : S�lectionner tout - Visualiser dans une fen�tre � part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15" />
    </head>
    <script type="text/javascript">
    function Retour()
    	{
    	document.frmSaisie.action = 'Default.asp';
    	document.frmSaisie.submit();
    	}
     
    function Supprimer(Num)
    	{
    	//document.write("? ? ? ? ?");
    	//alert("OK");
    	var Reponse = window.confirm("Confirmez la suppression de cette fiche.");
    	if (Reponse)
    		{
    		document.frmSaisie.txtCompteur.value = Num;
    		document.frmSaisie.action = 'SqlDelete.asp';
    		document.frmSaisie.submit();
    		}
    	}
    </script>
     
    <body bgcolor="#ECF4FF" onMouseOver="window.status='XXX'; return true;">
    <br>
    <p align="center">
    <font face="Arial" color="" size="3">
    <strong>
    Liste des fiches
    </strong>
    </font>
    </p>
    <form name="frmSaisie" method="post" action>
    	<input type="hidden" name="txtCompteur">
    		<table align="center" border="4" width="75%" bgcolor="" bordercolordark="">
    			<tr>
    				<td>
    					<a href="Liste.asp?Tri=Numero" title="Trier par numéro">
    					<font face="Arial" color="#0099CC" size="3">
    					<strong>
    					N°
    					</strong>
    					</font>
    					</a>
    				</td>
    				<td>
    					<a href="Liste.asp?Tri=Nom" title="Trier par nom">
    					<font face="Arial" color="#0099CC" size="3">
    					<strong>
    					Nom
    					</strong>
    					</font>
    					</a>
    				</td>
    				<td>
    					&nbsp;
    				</td>
    			</tr>
    			<tr BGCOLOR="">
    				<td>
    					<font face="Arial" color="#0099CC" size="3">
    					<strong>
    					01
    					</strong>
    					</font>
    				</td>
    				<td>
    					<font face="Arial" color="#0099CC" size="3">
    					<strong>
    					Acier
    					</strong>
    					</font>
    				</td>
    				<td align="center" width="25">
    					<span style="cursor:pointer;">
    					<img src="Images/u_del.gif" alt="Supprimer" OnClick="Supprimer(01)" WIDTH="12" HEIGHT="12">
    					</span>
    				</td>
    			</tr>
    			<tr BGCOLOR="#BAE2E3">
    				<td>
    					<font face="Arial" color="#0099CC" size="3">
    					<strong>
    					02
    					</strong>
    					</font>
    				</td>
    				<td>
    					<font face="Arial" color="#0099CC" size="3">
    					<strong>
    					Fer
    					</strong>
    					</font>
    				</td>
    				<td align="center" width="25">
    					<span style="cursor:pointer;">
    					<img src="Images/u_del.gif" alt="Supprimer" OnClick="Supprimer(02)" WIDTH="12" HEIGHT="12">
    					</span>
    				</td>
    			</tr>
    		</table>
    		<br><br>
    		<p align="center">
    			<span style="cursor:pointer;">
    			<img src="Images/retour.gif" alt="Retour" OnClick="Retour()" border="0" WIDTH="100" HEIGHT="25">
    			</span>
    		</p>
    </form>
    </body>
    </html>

  7. #7
    Membre Expert
    Avatar de pc75
    Profil pro
    Inscrit en
    Septembre 2004
    Messages
    3 662
    D�tails du profil
    Informations personnelles :
    �ge : 70
    Localisation : France, Paris (�le de France)

    Informations forums :
    Inscription : Septembre 2004
    Messages : 3 662
    Par d�faut
    C'est bon, laissez tomber !

    En fait, l'utilisateur s'�tait fait un magnifique raccourci qui pointait sur un fichier mht en local sur son poste genre c:\mes documents\Fichier.mht.

+ R�pondre � la discussion
Cette discussion est r�solue.

Discussions similaires

  1. [UI 1.8.11] Tabs : comportement incompr�hensible
    Par Alexdezark dans le forum jQuery
    R�ponses: 0
    Dernier message: 14/04/2011, 11h19
  2. Comportement incompr�hensible d'Internet Explorer 8
    Par electroremy dans le forum Mise en page CSS
    R�ponses: 6
    Dernier message: 09/04/2011, 21h06
  3. R�ponses: 8
    Dernier message: 22/01/2009, 11h13
  4. Caract�res incompr�hensibles sur mes pages
    Par BernardT dans le forum Langage
    R�ponses: 8
    Dernier message: 10/01/2008, 11h39
  5. [Serveur Samba] Comportement incompr�hensible
    Par Siguillaume dans le forum R�seau
    R�ponses: 1
    Dernier message: 26/10/2007, 16h55

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo