gokyo
04-29-2003, 08:50 AM
Hi everyone,
I got a stupid problem, I got a file .js call regSemplice.js where I put my function, I declared a global variable called tipoConto like that:
//Global
var tipoConto="";
I got a function... I call this function from an html page
function apriPianoConti(contoDareAvere){
//I do that
tipoConto = contoDareAvere;
//then
window.open(window.open("frmPianoConti.jsp", "_blank")
}
From the new window (frmPianoConti) I call a function that is in the same .js file...
function selectConto(nrConto){
//I wanna to test tipoConto variable and said me that tipoConto is undefined...
window.alert(tipoConto);
The question is WHYYYYY?
Any suggestion?
Thank's
ALohA
I got a stupid problem, I got a file .js call regSemplice.js where I put my function, I declared a global variable called tipoConto like that:
//Global
var tipoConto="";
I got a function... I call this function from an html page
function apriPianoConti(contoDareAvere){
//I do that
tipoConto = contoDareAvere;
//then
window.open(window.open("frmPianoConti.jsp", "_blank")
}
From the new window (frmPianoConti) I call a function that is in the same .js file...
function selectConto(nrConto){
//I wanna to test tipoConto variable and said me that tipoConto is undefined...
window.alert(tipoConto);
The question is WHYYYYY?
Any suggestion?
Thank's
ALohA