Bonjour a tous et merci pour lire ma question!

Je ne sais pas si ca c'est le bon forum.

J'ai un code qui utilise html et javascript. (contenu de fichier index.jsp)

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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
 
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.io.Serializable" %>
<%@ page import="javax.servlet.http.HttpServletRequest" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 
<%
String useragent = request.getHeader("User-Agent");
String user = useragent.toLowerCase();
 
if(user.indexOf("iphone") != -1 || user.indexOf("ipod") != -1 || (user.indexOf("chrome") != -1 && user.indexOf("android") != -1) || user.indexOf("fennec") != -1 || user.indexOf("moblin") != -1) {
	response.sendRedirect("./iphone/index.html");
} else if(user.indexOf("nokia") != -1) {
	response.sendRedirect("./iphone/index.html");
} else if(user.indexOf("blackberry") != -1) {
	response.sendRedirect("./iphone/index.html");
} else if(user.indexOf("fennec") != -1) {
	response.sendRedirect("./iphone/index.html");
} else if(user.indexOf("htc") != -1) {
	response.sendRedirect("./htc/index.html");
}
 
 
%>
 
 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Création catalogues interactifs - webpublication</title>
<meta name="description" content="3 solutions pour créer vos catalogues interactifs virtuels, flash. Solutions professionnelles pour la mise en ligne de vos e-catalogues, e-brochures, e-books" />
<meta name="keywords" content="Catalogue en ligne, Catalogue interactif, dossier de presse interactif, PDF interactif, flip-book, e-catalogue, e-brochure, flash book, catalogue flash, catalogue online, catalogue électronique, livre flash, page flip, pdf dynamique, catalogue numérique, magazine flash, magazine en ligne, e-book, flip book" />
<link rel="shortcut icon"  href="favicon.ico"/>
<link rel="iconmac"  href="IMG/iconmac.png"/>
<link rel="iconmac2"  href="IMG/favicon.gif"/>
<link href="Style/styles.css" rel="stylesheet" type="text/css"/>
<link href="Style/style_index.css" rel="stylesheet" type="text/css"/>
<script src="Scripts/swfobject.js" type="text/javascript"></script>
<script src="Scripts/scripts.js" type="text/javascript"></script>
<script src="Scripts/script_wp.js" type="text/javascript"></script>
</head>
<body>
 
<jsp:include page="header.jsp" />
 
<!-- navigation -->
<div id="navigationWP">
	<div id="navigation" align="center">
    <div class="blank20">&nbsp;</div>   
    <div id="navigationLeft">
 	  <div class="blank30">&nbsp;</div>      
   	  <span class="txt26grisfonceIntro"><strong>web</strong>publication,</span><br />
        <span class="txt26grisfonceIntro">&nbsp;la solution professionnelle</span><br />
        <span class="txt26grisfonceIntro">&nbsp;&nbsp;de publication en ligne</span><br />
	  <span class="txt11orangeIntro">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;voir le magazine interactif<img src="IMG/btn-fleche.gif" alt="catalogue interactif magazine Tribu-Te" width="15" height="16" /></span>
    </div>
    <div id="navigationRight">
    <div class="blank297">&nbsp;</div>   
    </div>
 
	<div id="navigationBottomLeft">
	  <table border="0" cellpadding="0" cellspacing="0">
	    <tr>
	      <td class="td1"></td>
	      <td class="td2"></td>
	      <td class="td3"></td>
        </tr>
	    <tr>
	      <td class="td4"></td>
	      <td bgcolor="#FFFFFF" align="left" valign="top">
          	<table border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td><img src="IMG/px.gif" alt="" width="1" height="1" /></td>
                  <td><span class="txt15grisfonce">3 solutions s’offrent à vous</span></td>
                </tr>
                <tr>
                  <td ><img src="IMG/px.gif" alt="" width="1" height="1" /></td>
                  <td><img src="IMG/px.gif" alt="" width="18" height="9" /></td>
                </tr>
                <tr>
                  <td><img src="IMG/px.gif" alt="" width="3" height="1" /></td>
                  <td nowrap="nowrap" ><span  class="txt12grisclair">• </span><a href="produits-logiciel-en-ligne.jsp" target="_self" class="txt12grisclair"><strong>Mettez vous-mêmes</strong> vos publications en ligne <strong>en moins de 10'</strong></a><strong> </strong><br /></td>
                </tr>
                <tr>
                  <td><img src="IMG/px.gif" alt="" width="1" height="1" /></td>
                  <td><img src="IMG/px.gif" alt="" width="18" height="7" /></td>
                </tr>
                <tr>
                  <td ><img src="IMG/px.gif" alt="" width="1" height="1" /></td>
                  <td nowrap="nowrap" ><span  class="txt12grisclair">• </span><a href="produits-service-mise-en-ligne.jsp" target="_self" class="txt12grisclair"><strong>Confiez nous la mise en ligne</strong> de vos</a> <a href="produits-service-mise-en-ligne.jsp" target="_self" class="txt12grisclair">PDF interactifs</a></td>
                </tr>
                <tr>
                  <td ><img src="IMG/px.gif" alt="" width="1" height="1" /></td>
                  <td ><img src="IMG/px.gif" alt="" width="18" height="7" /></td>
                </tr>
                <tr>
                  <td ><img src="IMG/px.gif" alt="" width="1" height="1" /></td>
                  <td nowrap="nowrap" ><span  class="txt12grisclair">• </span><a href="produits-automatisation.jsp" target="_self" class="txt12grisclair"><strong>Automatisez</strong> la mise en ligne de vos catalogues num&eacute;riques</a></td>
                </tr>
                <tr>
                  <td ><img src="IMG/px.gif" alt="" width="1" height="1" /></td>
                  <td ><img src="IMG/px.gif" alt="" width="18" height="7" /></td>
                </tr>
                <tr>
                  <td ><img src="IMG/px.gif" alt="" width="1" height="1" /></td>
                  <td  align="right" ><a href="produits-presentation.jsp" target="_self" class="txt11orange">en savoir plus sur la publication en ligne de catalogues int&eacute;ractifs</a><img src="IMG/btn-fleche.gif" alt="catalogue interactif publication en ligne" width="15" height="16" /></td>
                </tr>
	        </table>
          </td>
	      <td class="td5"></td>
        </tr>
	    <tr>
	      <td class="td6"></td>
	      <td class="td7"></td>
	      <td class="td8"></td>
        </tr>
      </table>
	</div>
    <div id="navigationBottomCenter">
      <table  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td class="td1"></td>
          <td class="td2"></td>
          <td class="td3"></td>
        </tr>
        <tr>
          <td class="td4"></td>
          <td bgcolor="#FFFFFF" align="left" valign="top"><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td><img src="IMG/px.gif" alt="" width="1" height="1" /></td>
              <td><span class="txt15grisfonce">Ils nous font confiance</span></td>
            </tr>
            <tr>
              <td ><img src="IMG/px.gif" alt="" width="1" height="1" /></td>
              <td><img src="IMG/px.gif" alt="" width="18" height="9" /></td>
            </tr>
            <tr>
              <td><img src="IMG/px.gif" alt="" width="3" height="1" /></td>
              <td rowspan="5" align="center" class="txt12grisclair"><div id="refcontent"> <strong>You need to upgrade your Flash Player</strong></div>
                <script type="text/javascript">
                                        // <![CDATA[
                                        var so = new SWFObject("Flash/references.swf", "references", "180", "75", "8", "");
                                        so.addParam("menu", "false");
                                        so.addParam("wmode", "transparent");
                                        so.write("refcontent");
                                        // ]]>
                                    </script></td>
            </tr>
            <tr>
              <td><img src="IMG/px.gif" alt="" width="1" height="1" /></td>
            </tr>
            <tr>
              <td ><img src="IMG/px.gif" alt="" width="1" height="1" /></td>
            </tr>
            <tr>
              <td ><img src="IMG/px.gif" alt="" width="1" height="1" /></td>
            </tr>
            <tr>
              <td ><img src="IMG/px.gif" alt="" width="1" height="1" /></td>
            </tr>
            <tr>
              <td ><img src="IMG/px.gif" alt="" width="1" height="1" /></td>
              <td ><img src="IMG/px.gif" alt="" width="18" height="5" /></td>
            </tr>
            <tr>
              <td ><img src="IMG/px.gif" alt="" width="1" height="1" /></td>
              <td  align="left" nowrap="nowrap"  class="txt11orange">+ de 10000 publications mises en ligne !<br /></td>
            </tr>
          </table></td>
          <td class="td5"></td>
        </tr>
        <tr>
          <td class="td6"></td>
          <td class="td7"></td>
          <td class="td8"></td>
        </tr>
      </table>
    </div>
    <div id="navigationBottomRight">
    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td ><img src="IMG/px.gif" alt="" width="1" height="10" /></td>
          </tr>
                    <tr>
                      <td align="center">
<script type="text/javascript">
launchMini("3/1648/5196", "true", "no", "249", "159", "fr");
</script></td>
          </tr>
                    <tr>
                      <td height="20" align="center" valign="top"><a href="javascript:void(0)" onclick="return fullWin('Pop2','http://asp.webpublication.fr/v2/indexPop.jsp?id=3/1648/5196&amp;lng=fr');" class="txt11grisclair">e-catalogue multimédia</a></td>
          </tr>
      </table>
    </div>
  </div>
  <div class="blank15">&nbsp;</div>
  <div id="navigation">
	<h1 style="font-size:15px">&nbsp;&nbsp;&nbsp;&nbsp;<span class="txt15grisfonce">Vivez une nouvelle expérience de lecture interactive</span></h1>
 
    <p class="accroche"><span class="txt12grisclair"><strong>Ouvrez de nouveaux horizons à votre communication&nbsp;</strong>en intégrant dans vos documents des liens hypertextes, <br />
	des animations flash, des vidéos, des images HD…</span></p>
 
    <p class="accroche"><span class="txt12grisclair"><strong>Publiez sur le net ou tout type de support numérique</strong>, CDRom, clé USB, votre ordinateur, vos propres serveurs… <br />
    tous vos documents&nbsp;: <strong><a class="txt12grisclair" href="catalogue-interactif.html">catalogues interactifs</a></strong>, <strong><a class="txt12grisclair" href="magazine.html">magazines</a></strong>, brochures, <strong><a class="txt12grisclair" href="dossier-de-presse.html">dossier de presse</a></strong>, argumentaires…</span></p>
 
    <p class="accroche"><span class="txt12grisclair"><strong>Diffusez &nbsp;au moindre coût</strong>, sans limite de poids et partout dans le monde l’ensemble de vos contenus&nbsp;: <br />
	print,images HD, et vidéos</span></p>
  </div>
  <br />
</div>
 
<div id="swf">
	<div id="flashcontent">
		<strong>You need to upgrade your Flash Player</strong>
	</div>
	<script type="text/javascript">
		// <![CDATA[
		var so = new SWFObject("Flash/intro.swf", "intro", "640", "410", "8", "");
		so.addParam("menu", "false");
		so.addParam("wmode", "transparent");
		so.write("flashcontent");
		// ]]>
	</script>
</div>
 
<jsp:include page="footer.jsp" />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-4897606-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
</html>
Le probleme est que j'ai 10.000 livres et je veux lire dans une balise noscript () code qui n'est pas executé par javascript pour chaque publication 2 fichier xml

Donc ce que je ne sais pas c'est ajouter à mon code dans un balise <ns>code </ns> pour lire 2 fichiers xml en javascript pour chaque livre (j'ai 10.000 livres).

Ce que j'ai essaye (mais je ne sais pas ou ajouter le code no script):

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
<ns>
var numeroLivres = 10000;
for(i=1;i<=10000) //pour tous les publication je veux lire les 2 fichiers xml dans une balise noscript c'est ca mon probleme.
//comment lire 2 fichiers xml en javascript menu2.xml et texte.xml
//document.write(numeroLivres);

</ns>
Donc ce que je ne sais pas c'est comment lire 2 fichier xml en javascript et il faut qu'il lise pour tous les livres que j'ai.