How to add a window popup

Widgets
Anonymous
2013-11-19
2013-11-25
  • Anonymous - 2013-11-19

    Hi,
    I'd like to have a window popup after clicking a link in a widget.
    For example in one widget I have a list of cars, and if I went to add a cars, there is a link "create" on the widget. After clicking it, there will be a popup window where i can insert the information about the car to add, if the insertion is finished, it back to the first widget with the car added.
    Thanks!

     
  • Eric Mathieu

    Eric Mathieu - 2013-11-19

    Hi,
    depending of the type of your widget, you can use $p.app.popup.open or window.parent.$p.app.popup.open. Just look at the /includes/ajax.js file for examples

     
  • Anonymous - 2013-11-25

    I think, it's window.parent.$p.app.popup.open bcause it's own of one window.
    And how to do please?

     
  • Eric Mathieu

    Eric Mathieu - 2013-11-25

    window.parent.$p.app.popup.show('your_html',largeur_du_popup,hauteur_du_popup, 'titre_du_popup');

     


Anonymous

Cancel  Add attachments