Hello,
So, I have a partial page where a user has to enter data, and one of the fields requires a search, which I wanted to use as a partial page - but as a popup. So, when the user clicks on a button a popup would should up where the user can search for a location, for ex. However, when I tried this, I added the popup container and within that I added a partial page layout group. When I click the button, it first starts as a popup but then turns into a window, so it's no longer a popup.
So, I guess my question is: Can partial pages be a popup?
So, I have a partial page where a user has to enter data, and one of the fields requires a search, which I wanted to use as a partial page - but as a popup. So, when the user clicks on a button a popup would should up where the user can search for a location, for ex. However, when I tried this, I added the popup container and within that I added a partial page layout group. When I click the button, it first starts as a popup but then turns into a window, so it's no longer a popup.
So, I guess my question is: Can partial pages be a popup?
RE: Partial Pages as Popups?
You should be able to do this fine.
Just add a popup dialog control, and place a partial page container group inside it. (You can delete the popup_dialog_content group if you like.)
Then add an additional event to the button that displays the dialog so that it will also do an Ajax Submission to load the partial page into the new group.
This should be all you need to do. One thing to be aware of though is that the popup dialog contents remain part of the overall page; they are not a separate page themselves. Therefore any form submission actions performed from the popup will replace the whole page with the response, not just the dialog. So in your case your whole search process would need to be partial pages, both the search criteria and results display.
If the page display is being changed as the partial page loads in rather than from a later button press, one thing you could check is for any onload events on the partial page.
I hope this helps.
Regards,
Gerard