aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes problem with javascript  .showModalDialog() Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "problem with javascript  .showModalDialog()" Watch "problem with javascript  .showModalDialog()" New topic
Author

problem with javascript .showModalDialog()

kumar kiran
Greenhorn

Joined: Sep 15, 2008
Posts: 11
hai to all,

In my application i am using .showModalDialog(url,window,features)to show one dialouge box and showing a jsp page in that dialouge box which is having a form in that jsp.when i submit the form, another bigger dialouge box is coming.so after submitting the form on my screen i would be having two dialouge boxes.how to navigate to same dialouge box when i submit the form.please solve my problem.........thanks in advance.


scjp1.5(87)<br />scwcd in progress....
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
You do not want another window to open when you submit the form? Is that the question? If so what is causing it to open in a new window? Are you doing something in the code? Are you setting a target on the form?

Eric
kumar kiran
Greenhorn

Joined: Sep 15, 2008
Posts: 11
I am using struts framework.I am able to create dialogue box using showModalDilog()in a javascript function.the box showing a jsp which is having a form.When i submit the form,it is going to struts action class and in config file i am forwarding to same jsp.Instead of showing the same dialog box,it is showing another new window.In config file i specified the same jsp page as the target.what is the problem here......
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: problem with javascript .showModalDialog()
 
Similar Threads
can HttpUnit test pop-up window ?
iframe and struts url won't work
combo and text box
Javascript help : Please
Require help in submitting <form> through JavaScript function