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 :

Compatibilité sous IE7


Sujet :

JavaScript

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    386
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2007
    Messages : 386
    Par défaut Compatibilité sous IE7
    Bonjour,
    Je sèche sur un problème, j'ai un script javascript sur ma page index.php qui est chargé avec cette ligne de code :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <script type="text/javascript" src="js/javascript.js"></script>
    Ce fichier javascript contient le code suivant :
    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
    // JavaScript Document
    window.onunload = function(){
    				GUnload();
    			}
    			window.onload = function(){
     
    				if (GBrowserIsCompatible()) {
     
    					// Init the map
    					var map = new GMap2(document.getElementById('map'));
    					map.addControl(new GSmallMapControl());
    					map.setCenter(new GLatLng(48.856667, 2.350987), 12);
    // Point 1				
    					// Creating a marker
     
    					var marker = new GMarker(new GLatLng(48.879906, 2.313697), {
    							draggable: true, 
     
    						});
     
    					// Adding a click event to the marker
    					GEvent.addListener(marker, "mouseover", function() {
    					    marker.openInfoWindow('<table><tr><td><img src=http://www.toto.fr/toto.jpg width=60 height=54></td><td>blabla<br/>blabla<br/>blabla</br>blabla</td></tr></table>');
    					});
     
    					// Close InfoWindow at dragstart
    					GEvent.addListener(marker, "dragstart", function() {
    						map.closeInfoWindow();
    					});
     
    					// Add the marker to the map	
    					map.addOverlay(marker);
    // Point 2					
    						// Creating a marker
    					var marker2 = new GMarker(new GLatLng(48.852909, 2.336977), {
    							draggable: true, 
     
    						});
     
    					// Adding a click event to the marker
    					GEvent.addListener(marker2, "mouseover", function() {
    					    marker2.openInfoWindow('<table><tr><td><img src=http://www.toto.fr/toto.jpg width=60 height=54></td><td>blabla<br/>blabla<br/>blabla</br>blablabla</td></tr></table>');
    					});
     
    					// Close InfoWindow at dragstart
    					GEvent.addListener(marker2, "dragstart", function() {
    						map.closeInfoWindow();
    					});
     
    					// Add the marker to the map	
    					map.addOverlay(marker2);
    // Point 3				
    					// Creating a marker
     
    					var marker3 = new GMarker(new GLatLng(48.874366, 2.322735), {
    							draggable: true, 
     
    						});
     
    					// Adding a click event to the marker
    					GEvent.addListener(marker3, "mouseover", function() {
    					    marker3.openInfoWindow('<table><tr><td><img src=http://www.toto.fr/toto.jpg width=60 height=54></td><td>blabla<br/>blabla<br/>blabla</br>blabla</td></tr></table>');
    					});
     
    					// Close InfoWindow at dragstart
    					GEvent.addListener(marker3, "dragstart", function() {
    						map.closeInfoWindow();
    					});
     
    					// Add the marker to the map	
    					map.addOverlay(marker3);					
    				}
    			}
    Sa fonctionne sous firefox, mais pas sous IE7 et je ne sais pas pourquoi, .. donc si vous avez des idées je prends :-)
    Big merci par avance !

  2. #2
    Membre Expert
    Avatar de RomainVALERI
    Homme Profil pro
    POOête
    Inscrit en
    Avril 2008
    Messages
    2 652
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 48
    Localisation : France, Meurthe et Moselle (Lorraine)

    Informations professionnelles :
    Activité : POOête

    Informations forums :
    Inscription : Avril 2008
    Messages : 2 652
    Par défaut
    Pour faire quoi exactement au moment de la fermeture de la page ?

Discussions similaires

  1. Compatibilité CSS/XHTML sous IE7
    Par V1NC3N7 dans le forum Balisage (X)HTML et validation W3C
    Réponses: 2
    Dernier message: 09/05/2010, 13h24
  2. Problème de compatibilité sous ie7
    Par fab76000 dans le forum Mise en page CSS
    Réponses: 8
    Dernier message: 11/03/2009, 07h55
  3. compatibilité sous IE7..
    Par Skeud007 dans le forum Général JavaScript
    Réponses: 3
    Dernier message: 27/02/2008, 11h41
  4. Problème de session sous IE7
    Par zecreator dans le forum ASP
    Réponses: 4
    Dernier message: 11/12/2006, 13h27
  5. Checkbox sous IE7
    Par Death83 dans le forum Balisage (X)HTML et validation W3C
    Réponses: 3
    Dernier message: 20/03/2006, 23h52

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