modal window + update
Posted: Thu Oct 29, 2009 3:51 pm
Hi,
I am developing a component and i got stuck on that.
I have a component with a table view, on this table view I have an link on every item to edit it.
I did it using amodal window, I am able to click on edit, the nice modal window opens, I modify the data (the data is well modified) and then i close the window.
But the parent window is not actualised (if i refresh the window, then the data appears actualised),
but it should be a way of doing it actomatically isn't??
Can anyone help me?
What i did to get the modal window is the followind:
1.- put JHTML::_( 'behavior.modal'); on view.html.php
2.- use on the table: <a class="modal" id="popup" rel="{handler: 'iframe', size: {x: 650, y: 700}}" href="?option=com_mycomponent&tmpl=component&id=<?php echo $item->id; ?>"><img src='./images/M_images/edit.png' alt='View details' border=0></a>
thanks in advance,
Albert
I am developing a component and i got stuck on that.
I have a component with a table view, on this table view I have an link on every item to edit it.
I did it using amodal window, I am able to click on edit, the nice modal window opens, I modify the data (the data is well modified) and then i close the window.
But the parent window is not actualised (if i refresh the window, then the data appears actualised),
but it should be a way of doing it actomatically isn't??
Can anyone help me?
What i did to get the modal window is the followind:
1.- put JHTML::_( 'behavior.modal'); on view.html.php
2.- use on the table: <a class="modal" id="popup" rel="{handler: 'iframe', size: {x: 650, y: 700}}" href="?option=com_mycomponent&tmpl=component&id=<?php echo $item->id; ?>"><img src='./images/M_images/edit.png' alt='View details' border=0></a>
thanks in advance,
Albert