WOrking with popup windows in JS
function submitMenu(submitType,proposalElementId,clientGradingStatus,proposalType){
if(submitType == "viewFacPrevGR"){
dgPopUp(submitType,proposalElementId);
}
}
//POPUP FUNCTION
function dgPopUp(submitType,proposalElementId)
{
// alert("Inside dgPopUp");
document.forms[0].action.value=submitType;
window.open("about:blank", "viewFacPrevGR", "width=900,height=600,SCROLLBARS,dependent,resizable");
//window.open("about:blank", "sArcViewPreviouGR", "location=0,toolbar=0,menubar=0,resizable=1,modal=yes");
document.forms[0].target = "viewFacPrevGR";
document.forms[0].selectedProposalElementId.value = proposalElementId;
document.forms[0].submit();
}
window.open("/srgt-arc/actions/validateResult.do", "ValidationResult", "width=700,height=400,SCROLLBARS");
Tuesday, June 12, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment