cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

showModalDialog - Urgernt Help !!!

Former Member
0 Likes
201

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

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