Foros de discusión

Liferay Pop Up

thumbnail
Hamidul Islam, modificado hace 15 años.

Liferay Pop Up

Regular Member Mensajes: 111 Fecha de incorporación: 22/05/08 Mensajes recientes
Hi everybody,

I am using liferay pop up window for my portlet. Is there any way to close the pop up window by java script?

Following is the code I have written for the pop up window
function <portlet:namespace />myPopUp(url) {
                var popup = Liferay.Popup({title: "Address-book",modal:false,width:420});
                jQuery(popup).load(url);
      }        

Thanks in Advance
thumbnail
sakir ahamed ismail, modificado hace 15 años.

RE: Liferay Pop Up

Regular Member Mensajes: 129 Fecha de incorporación: 22/08/08 Mensajes recientes
Liferay.Popup.close(this);
thumbnail
Hamidul Islam, modificado hace 15 años.

RE: Liferay Pop Up

Regular Member Mensajes: 111 Fecha de incorporación: 22/05/08 Mensajes recientes
Thank you very much
thumbnail
Faisal K, modificado hace 15 años.

RE: Liferay Pop Up

Regular Member Mensajes: 138 Fecha de incorporación: 9/01/08 Mensajes recientes
Hi Hamid,

I think your query is closing the liferay popup using a button which is other than the close button which is existing at the top right of the popup. In liferay-5.0.1 or lesser version i used the below code to close the popup but it is not working in 5.1.0 and 5.1.1 below is my code.



<input type="button" value="close" onClick="Liferay.Popup.close(this)">
thumbnail
Hamidul Islam, modificado hace 15 años.

RE: Liferay Pop Up

Regular Member Mensajes: 111 Fecha de incorporación: 22/05/08 Mensajes recientes
Hi Faisal its working fine. Thank you very much
sailaja prathi, modificado hace 15 años.

RE: Liferay Pop Up

New Member Mensajes: 12 Fecha de incorporación: 29/10/08 Mensajes recientes
Hamidul Islam:
Hi Faisal its working fine. Thank you very much


HI Hamidul Islam ,

I want to implement some javascript code on my struts portlet .I have implemented the code for some validations but its not working. Could you please tel me how to implement the javascript code for some validations and to implement some functions .
We need implement some functionality through javascript . And i have dead line for this If you help me on it will be great ful to me .

Thanks in advance.
Sailaja ..
thumbnail
Tarun S. Kayasth, modificado hace 14 años.

RE: Liferay Pop Up

Regular Member Mensajes: 162 Fecha de incorporación: 8/06/07 Mensajes recientes
Hi Hamidul,

Is your problem solved?

What sort of javascript you wanted to run?

- Tarun
thumbnail
ankit yakkundi, modificado hace 13 años.

RE: Liferay Pop Up

Regular Member Mensajes: 221 Fecha de incorporación: 5/03/10 Mensajes recientes
Hi..
I am using liferay 5.2.3 with tomcat 5.2.7.
I have created two simple jsp portlet.
I have two problems.
1) In 1st jsp portlet there are some links.On the click event of links i want to open portlet. for example if i click on wiki link then a new page should be opened showing the create wiki portlet.
2)In second portlet there are some links. On the click even of the link another portlet or a popup should be opened,which consist some links.

How do i solve these problems???

Can anyone share the code or view.jsp page.

I am using simple jsp portlet...

Any idea or suggestions are welcome...

Thanks in advance...