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 :

Problème d'appel à une fonction


Sujet :

JavaScript

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Futur Membre du Club
    Profil pro
    Inscrit en
    Septembre 2006
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2006
    Messages : 4
    Par défaut Problème d'appel à une fonction
    J'ai comme un p'tit problème les ami(e)s
    Voilà, j'ai une érreur sur ma page et je n'arrive pas à savoir ou.
    Petite précision: je n'ai aucune connaissance dans ce domaine.

    Merci de votre aide, je vous met le code de ma page juste en dessous.

    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
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
      <meta content="text/html; charset=ISO-8859-1"
     http-equiv="content-type">
      <title>oeuvres</title>
    </head>
    <body style="background-image: url(images/fondp.jpg);">
    <p style="text-align: center;"><a
     href="javascript:reqWin('status/p10.jpg')"><img
     style="width: 56px; height: 82px;" alt=""
     src="status/petit/p10.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/p11.jpg')"><img
     style="border: 2px solid ; width: 56px; height: 75px;" alt=""
     src="status/petit/p11.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/p18.jpg')"><img
     style="width: 56px; height: 82px;" alt=""
     src="status/petit/p18.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/p19.jpg')"><img
     style="width: 56px; height: 82px;" alt=""
     src="status/petit/p19.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/p20.jpg')"><img
     style="width: 84px; height: 62px;" alt=""
     src="status/petit/p20.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/p21.jpg')"><img
     style="width: 84px; height: 62px;" alt=""
     src="status/petit/p21.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g02.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p02.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g03.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p03.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g04.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p04.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g07.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p07.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g08.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p08.jpg"></a> &nbsp;<a
     href="javascript:reqWin('status/g09.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p09.jpg"></a> &nbsp;<a
     href="javascript:reqWin('status/g12.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p12.jpg"></a> &nbsp;<a
     href="javascript:reqWin('status/g13.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p13.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g14.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p14.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g15.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p15.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g16.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p16.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g17.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p17.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g22.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p22.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g23.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p23.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g24.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p24.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g25.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p25.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g26.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p26.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g27.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p27.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g28.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p28.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g29.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p29.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g30.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p30.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g31.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p31.jpg"></a>&nbsp; <a
     href="javascript:reqWin('status/g32.jpg')"><img
     style="width: 79px; height: 107px;" alt=""
     src="status/petit/p32.jpg"></a>&nbsp;</p>
    <p style="text-align: center;">&nbsp;<a
     href="javascript:reqWin('status/p01.jpg')"><img
     style="width: 83px; height: 62px;" alt=""
     src="status/petit/p01.jpg"></a> &nbsp;<a
     href="javascript:reqWin('status/p05.jpg')"><img
     style="width: 83px; height: 62px;" alt=""
     src="status/petit/p05.jpg"></a> &nbsp;<a
     href="javascript:reqWin('status/p06.jpg')"><img
     style="width: 83px; height: 62px;" alt=""
     src="status/petit/p06.jpg"></a></p>
    <br>
    </body>
    </html>
    Encore merci à celui qui me sortira de ce p'tit péterin

  2. #2
    Membre expérimenté Avatar de Seb19
    Homme Profil pro
    Concepteur SOA
    Inscrit en
    Septembre 2005
    Messages
    217
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 50
    Localisation : France, Deux Sèvres (Poitou Charente)

    Informations professionnelles :
    Activité : Concepteur SOA

    Informations forums :
    Inscription : Septembre 2005
    Messages : 217
    Par défaut
    Bonjour,

    Comment est défini ta fonction reqWin() ?

  3. #3
    Modérateur
    Avatar de Bisûnûrs
    Profil pro
    Développeur Web
    Inscrit en
    Janvier 2004
    Messages
    9 931
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Janvier 2004
    Messages : 9 931
    Par défaut
    On peut savoir quel type d'erreur tu veux qu'on remarque ?

    Au passage tu fais appel à une fonction javascript déclarée nulle part.

  4. #4
    Futur Membre du Club
    Profil pro
    Inscrit en
    Septembre 2006
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2006
    Messages : 4
    Par défaut
    Citation Envoyé par BisounoursJos
    On peut savoir quel type d'erreur tu veux qu'on remarque ?

    Au passage tu fais appel à une fonction javascript déclarée nulle part.
    à ben on dirait que ça doit être ça !

    Comment je fais pour la déclarer ??

  5. #5
    Membre expérimenté Avatar de Seb19
    Homme Profil pro
    Concepteur SOA
    Inscrit en
    Septembre 2005
    Messages
    217
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 50
    Localisation : France, Deux Sèvres (Poitou Charente)

    Informations professionnelles :
    Activité : Concepteur SOA

    Informations forums :
    Inscription : Septembre 2005
    Messages : 217
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
     
    <head>
    <script language="javascript">
    function reqWin(valeur) {
    // ce que tu veux que la fonction fasse
    }
    </script>
    </head>

  6. #6
    Futur Membre du Club
    Profil pro
    Inscrit en
    Septembre 2006
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2006
    Messages : 4
    Par défaut
    dans cette page il y a des petites vignettes et le javascript doit me permettre en cliquant sur chacune d'elles de les voir en grand format dans une nouvelle page ... vous voyez ce que je veux dire ???

    Comment je doit déclarer tout ça ???

    Merci d'avance pour toutes vos réponses

    Gensty

  7. #7
    Expert confirmé
    Avatar de Auteur
    Profil pro
    Inscrit en
    Avril 2004
    Messages
    7 660
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 7 660
    Par défaut
    bonjour,

    par exemple :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    function reqWin(valeur) 
    {
      window.open(valeur,"","height=200px,width=400px,menubar=no,toolbar=no");
     
    }
    d'après ton code HTML valeur est le chemin de l'image à afficher.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [SOAP] problème d'appel à une fonction
    Par FrankyLeClown dans le forum XML/XSL et SOAP
    Réponses: 4
    Dernier message: 07/03/2011, 18h38
  2. Problème d'appel à une fonction de Shell32.dll sous win server 2008
    Par ludogoal dans le forum API, COM et SDKs
    Réponses: 6
    Dernier message: 05/06/2009, 15h06
  3. [Tableaux] problème d'appel à une fonction
    Par sam01 dans le forum Langage
    Réponses: 6
    Dernier message: 25/01/2007, 10h28
  4. Réponses: 7
    Dernier message: 10/09/2005, 16h49
  5. [DLL] problème pour appeler une fonction d'une DLL
    Par bigboomshakala dans le forum MFC
    Réponses: 34
    Dernier message: 19/07/2004, 11h30

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