Refresh Page openeing Modalbox on ModalBox.hide

12 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Greg

ungelesen,
24.05.2008, 05:45:2424.05.08
an ModalBox
I would like to refresh the page that called the modalbox when I close
the modalbox is this possible?

Justinas Urbanavicius

ungelesen,
24.05.2008, 08:53:3724.05.08
an moda...@googlegroups.com
everything is possible.
onHide event execute parent.location.reload();

Francesco

ungelesen,
25.05.2008, 06:33:0525.05.08
an ModalBox
<script type="text/javascript">
function refreshPage()
{
parent.location.reload();
}
</script>
....
<a href="#" class="demo-btn" title="Button"
onclick="Modalbox.show(node, {title: this.title, width: 300, onHide:
refreshPage}); return false;">Click me</a>
....

This could be the Justinas Urbanavicius' solution proposed but with 4
or 5 code lines more!
;-)
Enjoy this beautiful script!

Justinas Urbanavicius

ungelesen,
25.05.2008, 13:53:3925.05.08
an moda...@googlegroups.com
not sure why do you need to declare a function for one line of the code


a href="#" class="demo-btn" title="Button"
onclick="Modalbox.show(node, {title: this.title, width: 300,  onHide: parent.location.reload}); return false;">Click me</a>

should also work

Greg

ungelesen,
25.05.2008, 16:27:4325.05.08
an ModalBox
Thanks guys, I appreciate the help, the parent function works
perfectly.
Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten