Bonjour je récupère un paramètre php et je veux le passer comme argument à ma méthode ajax sur le onload voici le code
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
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
 
<head>
<title>Webviewer</title>
<link rel="stylesheet" href="css/bouton.css" type="text/css" />
<link rel="stylesheet" href="css/viewer.css" type="text/css" />
 
 
<SCRIPT src="ajax.js"></SCRIPT>
<SCRIPT src="Serie.js"></SCRIPT>
</head>
 
<?php
 
        
     session_start();
 
        $index= $_GET['code'];
        print($index);
        $code_serie= $_SESSION['serie-'.$index];
        
        /*$indexImg= $_GET['index_image'];
        */
        
        
        
?>
 
 
<body bgcolor="#FFFFFF" onLoad='ajaxForSerieByCode_serie(paramètrePhp)'>
comment donner $code_serie à ma fonction ajaxForSerieByCode_serie.
Merci