hi all,
i have this code :
function launch(){
alert(CanAdd);
alert(next_page);
if (CanAdd != "false" ) {
if (next_page != ""{
parent.window.location=next_page;
} else {
alert("No contact type selected"
}
} else {
if (next_page != "organizer.ASP?WCI=oAddLBTLocal&" {
parent.window.location=next_page;
} else {
alert("You don't have access to the ADD a Local Contact function"
}
}
}
the problem is not in the reason why i make those tests and those things. i could have replaced them by :
if (toto) then tata ...
the problem is in the last string comparison. if next_page is equal to organizer.asp.... it must jump to the alert function. the problem is that it never jumps to.
i'm sure of all the variables (i made an alert of what each variable contains before and the alert(next_page)function displays me very well "organizer.ASP?WCI=oAddLBTLocal&"
what's wrong ? is there a better way to test the diffeences between 2 strings ? is my test not enought ?
Best regards,
Elise
i have this code :
function launch(){
alert(CanAdd);
alert(next_page);
if (CanAdd != "false" ) {
if (next_page != ""{
parent.window.location=next_page;
} else {
alert("No contact type selected"
}
} else {
if (next_page != "organizer.ASP?WCI=oAddLBTLocal&" {
parent.window.location=next_page;
} else {
alert("You don't have access to the ADD a Local Contact function"
}
}
}
the problem is not in the reason why i make those tests and those things. i could have replaced them by :
if (toto) then tata ...
the problem is in the last string comparison. if next_page is equal to organizer.asp.... it must jump to the alert function. the problem is that it never jumps to.
i'm sure of all the variables (i made an alert of what each variable contains before and the alert(next_page)function displays me very well "organizer.ASP?WCI=oAddLBTLocal&"
what's wrong ? is there a better way to test the diffeences between 2 strings ? is my test not enought ?
Best regards,
Elise