posted 18 years ago
Hi Pavan,
i can give you a hint on this. If i think i have got you correctly, then you want to pass parent's windows Title & some field descriptions into the child window (i.e. imagepreview.jsp). Right!!!
In that case what you do, in your parent window include a dummy form, with some name, put some hidden parameters as many as you awnt to pass to the child window. On click of "Preview", call a javascript function that sets these hidden parameters with the actual ITEM descriptions and then use the code like this:
var popup = window.open('','newwin');
document.<dummy-form-name>.target = 'newwin';
document.<dummy-form-name>.action = "<imagepreview.jsp>" or, "<whichever way you are calling the child window>";
document.<dummy-form-name>.submit();
after this opens a new window/popup, access your passed parameters, even title (if you have already set that too, into a hidden param), using JSP Expression Tags. You know that, right.
Refreshing life every moment...