If you can post the source of these two calls, it would help us to help you. Otherwise, you will just get sarcastic remarks like the previous.
Pepper alert() messages through call1() function, and see at what point it stops running.
eg
onclick="call1();alert('success1'); call2();".
I'm not sure whether this will help or not.
I encounter this problem some time ago.
Lets say u have 2 javascript function call1() and call2().. both returns a boolean upon exit. If you do 'onclick="return call1(); call2()"', call2() will never get executed cause u already return a control to the jsp/browser.
Sorry, don't think can help much cause dunno wat's in your code. So just guessing.. Hope it helps..
Here's the source, basically populating values for hidden variables.
function getMktNames() {
//call this function while submiting form...
//array not holding values, when come back from confirmation and go again to confirm screen
var mkts = "";
for (var ctr = 0;ctr < document.getElementById('mrktId').options.length ; ctr++ ) {
if (document.getElementById('mrktId').options[ctr].selected){
//do not add , if the value is empty
if (mkts != "") {
mkts = mkts + ",";
}
mkts = mkts + document.getElementById('mrktId').options[ctr].text;
}
}
document.forms[0].mktsSelected.value = mkts;
}
function getMktShrNames() {
var mkts = "";
for (var ctr = 0;ctr < document.getElementById('mrktIdShr').options.length ; ctr++ ) {
if (document.getElementById('mrktIdShr').options[ctr].selected){
//do not add , if the value is empty
if (mkts != "") {
mkts = mkts + ",";
}
mkts = mkts + document.getElementById('mrktIdShr').options[ctr].text;
}
}
document.forms[0].mktsSelectedShr.value = mkts;
}