on ‎2007 Oct 02 3:28 PM
Hi,
I have a page with a button called "showList". When i click on this button, i need to show a pop up window. The dialog window is meant to show a search result table with two columns "name" and "description". The search result could contain say 100 records.
I know that we can have a onClientClick attribute set for the button "showList" directing the click event to a javascript and then the javascript function opening the dialog box. The search result needs to be obtained by querying the database. I have a method in my action tier / business tier which queries the table and retrieves the data.
So my question is what should be the URL that needs to be passed to the showModalDialog call?. It cannot be the name of the target JSP because only when the data is fetched can i give the control to the JSP for it to display it.
In MVC frameworks like struts we give url as <something>.do which then redirects the control to the ActionServlet, Action, DAO etc. But in JSPDynPage how can i call the specific event handling method in the JSPDynPage from the JavaScript?.
Any help is really appreciated .Thankyou.
Request clarification before answering.
hi Sivarama,
for showModalDialog, if the page for dialog is stored in the same folder with the parent window, then you just parse the page name for the dialog window.
if the page is stored in the different folder with the parent window then you need to parse the url in the bsp url
for parsing the page parameter, just add " ?<parameter name> = '<value>' "
hopes it helps
cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.