留言板
On refresh Popup window data populating on the parent page
vikash kumar chaurasia,修改在12 年前。
On refresh Popup window data populating on the parent page
Junior Member 帖子: 97 加入日期: 10-1-8 最近的帖子
Hi,
I am facing an issue, with popup.
On image click, we are making a service call and getting a list, setting that List in session, and then displaying that list in Popup window. Upon selecting a value in the popup window, the popup window is closing and selected value is successfully populated in the required field. This we have done using the window.open
code given below:
The issue is: once I refresh the page, the list that was shown in popup window, is displayed in main window, which is horrible. Is there any solution for that?
Rather than that, it should display the user form as at first time login on that portlet.
Thanks
I am facing an issue, with popup.
On image click, we are making a service call and getting a list, setting that List in session, and then displaying that list in Popup window. Upon selecting a value in the popup window, the popup window is closing and selected value is successfully populated in the required field. This we have done using the window.open
code given below:
var ciurl="<liferay-portlet:renderurl windowstate="<%= LiferayWindowState.POP_UP.toString() %>">
<portlet:param name="isCiLookupDone" value="true" />
<portlet:param name="idEmail" value="email" />
<portlet:param name="idOrganization" value="org" />
</liferay-portlet:renderurl>";
var ciurl=ciurl.replace("email",emailRequester);
var ciurl=ciurl.replace("org",orgRequester);
var slideShowWindow = window.open(ciurl,
'slideShow',
'height=450,status=no,toolbar=no,width=850,resizable=no,scrollbars=yes');
The issue is: once I refresh the page, the list that was shown in popup window, is displayed in main window, which is horrible. Is there any solution for that?
Rather than that, it should display the user form as at first time login on that portlet.
Thanks
vikash kumar chaurasia,修改在12 年前。
RE: On refresh Popup window data populating on the parent page
Junior Member 帖子: 97 加入日期: 10-1-8 最近的帖子
Hi,
Anybody has solution for this issue?
It's urgent please.
Thanks
Anybody has solution for this issue?
It's urgent please.
Thanks
Pranay R Patadiya,修改在12 年前。
RE: On refresh Popup window data populating on the parent page
Regular Member 帖子: 177 加入日期: 10-2-23 最近的帖子
Hi,
I think it is a problem with ID that you have given to your HTML element.
Both IDs are same for popup and your page also.
So, use portlet namespace to avoid that.
For ex:
Let me know if you need anything else.
Thanks,
Pranay
I think it is a problem with ID that you have given to your HTML element.
Both IDs are same for popup and your page also.
So, use portlet namespace to avoid that.
For ex:
<input type="text" id="<portlet:namespace>id1" name="test">
Let me know if you need anything else.
Thanks,
Pranay