Working with PopUp windows.. :)
hey first time I ever created a popup window today.. I am so happy .. yay!!!
here is the code to create one..
function submitMenu(submitType,proposalElementId,clientGradingStatus,proposalType){
if(submitType == "viewFacPrevGR"){
dgPopUp(submitType,proposalElementId);
}
}
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");
document.forms[0].target = "viewFacPrevGR";
document.forms[0].selectedProposalElementId.value = proposalElementId;
document.forms[0].submit();
}
or you can directly call it from your JS as:
window.open("/srgt-arc/actions/validateResult.do", "ValidationResult", "width=700,height=400,SCROLLBARS");
learning is fun :)
Tuesday, June 12, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment