Bonjour à tou(te)s,
Voilà, voilà, j'ai une applet que j'appelle qui sert à tracer des courbes et qui est comme ça :
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
<html>
    <head>
        <title id="title">Spoutnik graphic</title>
 
		<script language="Javascript">
			function getParam(param_name) 
			{
				var param_value = decodeURI(
				(RegExp(param_name + ‘=’ + ‘(.+?)(&|$)).exec(document.location.href)||[,null])[1]
				);
 
				alert(param_value);
			}
 
		</script>
 
		<script type="text/javascript">
			function init() 
			{
				//document.getElementsByName("functionLabel").value="SquareRoot";
				var functionParameters = document.location.href.split("?")[1].split("&");
				var functionLabel  = functionParameters[0].split("=")[1]; 
				var functionValues = functionParameters[1].split("=")[1]; 
				var xLowerBound    = functionParameters[2].split("=")[1]; 
				var xUpperBound    = functionParameters[3].split("=")[1]; 
				var pointsNumber   = functionParameters[4].split("=")[1]; 
				var progressStep   = functionParameters[5].split("=")[1]; 
				document.getElementsByName("functionLabel")[0].value  = functionLabel;
				document.getElementsByName("functionValues")[0].value = functionValues;
				document.getElementsByName("xLowerBound")[0].value    = xLowerBound;
				document.getElementsByName("xUpperBound")[0].value    = xUpperBound;
				document.getElementsByName("pointsNumber")[0].value   = pointsNumber;
				document.getElementsByName("progressStep")[0].value   = progressStep;
 
				//document.getElementsById("title")[0].value = "Spoutnik " + functionLabel + " graphic";
				var s = functionLabel + "   " + functionValues + "   " + xLowerBound + "   " + xUpperBound + "   " + pointsNumber + "   " + progressStep
				alert(s);
			}
 
		</script>
 
    </head>
 
    <body onload="init()">
		<APPLET
			id="applet" 
			CODE="graphicPackage.AppletGraph.class" WIDTH=900 HEIGHT=600
            ARCHIVE="jcommon-1.0.21.jar, jfreechart-1.0.17.jar, graphicPackage.appletGraph.jar">
			<param name="functionLabel" /> 
			<param name="functionValues" /> 
			<param name="xLowerBound" /> 
			<param name="xUpperBound" /> 
			<param name="pointsNumber" /> 
			<param name="progressStep" /> 			            
        </APPLET>
 
 		<hr><br>
 
		<script>
			document.write(document.getElementsByName("functionLabel")[0].value);
		</script> 
 
    </body>
 
</html>
Il y bien récupération des paramètres :fonctionne.
Mais dans le code Java,
Code : Sélectionner tout - Visualiser dans une fenêtre à part
functionLabel = getParameter("functionLabel");
ne renvoie rien.

Quelqu'un aurait-il l'explication ?
Merci de votre aide.