Bonjour,
J’ai une frame avec 3 frameset. (Titre, menu, main). Dans mon menu j’ai 3 listbox me permettant de sélectionner une page HTML (c’est la concaténation de ces 3 champs qui me donnent le chemin de la page HTML). Je cherche donc à afficher cette page HTML dans la frameset "main". Pour l’instant, la page s’affiche dans le "menu". En HTML, je sais qu’il faut utliser l’option target mais en java , je ne connais pas l’option, la syntaxe? ? ? Quelqu'un a t il une solution ?Je vous joins mon code en annexe(cf fonction Gothere() )…
Merci d’avance ,
Ronan

Ma fonction me permettant d'afficher ma page HTM en fonction des parametres selectionnes dans les listbox:

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
 
<SCRIPT id="clientEventHandlersJS" language="javascript" type="text/javascript" > 
function goThere(eSelPage1) { 
var iSel1 = eSelPage1.selectedIndex; 
var iSel2 = eSelPage2.selectedIndex; 
var iSel3 = eSelPage3.selectedIndex; 
if (iSel1 == -1) { 
alert("Please select a page, then click GO."); 
return 
} 
var sURL1 = eSelPage1.options[iSel1].value; 
var sURL2 = eSelPage2.options[iSel2].value; 
var sURL3 = eSelPage3.options[iSel3].value; 
if (sURL1.length < 1 ) { 
alert("Invalid URL. Edit the VALUE of this option."); 
} else { 
sURL1 = eSelPage1.options[iSel1].value; 
// var newWin = window.open("D:/new/sortie/"+sURL1+"/"+sURL2+"/"+sURL3+"_result_C1_"+sURL1+".htm" ,'newWin','resizable,scrollbars,menubar,toolbar,location,status'); 
var newWin = window.location("D:/new/sortie/"+sURL1+"/"+sURL2+"/"+sURL3+"_result_C1_"+sURL1+".htm"); 
// newWin.focus(); 
} 
}