Link to home
Start Free TrialLog in
Avatar of shragi
shragiFlag for India

asked on

JSP Popup page

Hi - I have a jsp page and I had a link when some one clicks on that link
it should open a pop up page.
so I wrote the code as below

<li ><a href="#" onClick="MyWindow=window.open('jsp/addProcess.jsp','MyWindow',width=600,height=300); return false;">Click Here</a></li>

This looks good but i had two problems

1) I don't like calling another JSP, it's like opening another page. instead can I have a simple nice popup (without new jsp page) i mean something like a pop up window what you use for alert box
2) How to send the data from the main jsp page to popup window

Thanks,
ASKER CERTIFIED SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If the data from the main page is static you could have the contents of the popup within a hidden element then use the Featherlight jQuery plugin to open an alert style box with the popup contents.

Featherlight can also be used to open a "lightbox" (alert box with the page below shadowed) to a JSP page if there is server side processing required.