Nick Goupinets wrote:
Hi everybody,

Thank you very much for your support. The proposed solution was correct, the "SaveAs" dialog pops up with content disposition set up properly and the default mime type.

However, it appeared to be easier than expected to get the pop up from the browser. It is not necessary to open up a new window. It is sufficient to change current window location.href property (original window content remains unchanged):

function saveResult(){
var index = document.MyForm.SelectionBox.selectedIndex;
if (index == -1)
alert("Please make a selection first");
else {
window.location.href = 'coplets/myprojects/dataBench/saveResult?resultNum=' + index);
}
}
This is also a good idea. As long as you do not have to support browsers that restrict javascript functions that can be run.

--
Leszek Gawron                                                 MobileBox
[EMAIL PROTECTED]                              http://www.mobilebox.pl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to