Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it possible to display the success page as a pop up window

 
Anil Verghese
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is it possible to display the success page as a popup window.. I want to display the success page as a popup window.


Anil
 
Amit Sharma
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Anil,

I think you can acheive this with ajax.

i.e. submit your from using ajax and based on the response open a new window and show your success message.

I have not done something like this myself, but I think this will work.

- Amit
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64838
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajax is not necessary, and this is not a Struts question, I've moved it to an appropriate forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64838
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The response will appear in whatever window the request was made. There is no way to specify that the response appear in an alternate window other than that within which the request was made.

So you need to either:

1) Open the new window and submit the request to that window in the first place.

2) Include JavaScript in the response that will open the new window and cause the "success" page to be displayed within that new window.

Whether you use Ajax or not is irrelevant as the Ajax response is not automatically displayed anywhere.
[ April 05, 2008: Message edited by: Bear Bibeault ]
 
Amit Sharma
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

What I was suggesting is that having form submitted using ajax and as part the response to the ajax submit request, we get some message as the operation was successfully performed and showing that on a new window.

Anyway, I am new to ajax so cannot argue much on this :-(
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64838
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure that's possible, but the OP didn't say anything about already using Ajax, and adding Ajax to the mix doesn't solve the problem -- it's just another way to submit the request. There still must be work done to cause the response to appear in a new window.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic