Page 1 of 1
modal from button
Posted: 2016-12-08 22:45
by TheSpooki
I have created a button that shows up in the detail view of one of my pages and I am wondering how to make a modal box with a webpage in it show up when the button is clicked? If you could help with this it would be incredible!
Thanks in advance,
Joe
Re: modal from button
Posted: 2016-12-11 17:33
by DevGiu
You can use modal_window JS function.
Code: Select all
modal_window({
url: 'test.php',
close: function(){
//do things on close of modal;
},
size: 'full',
title: 'My title'
});
Re: modal from button
Posted: 2016-12-13 19:10
by TheSpooki
That kind of works but the modal closes and the page reloads when I click the button. I am trying to have a google map show but it is saying content can't be displayed in frame, is there any other way to do this? Thanks for your quick responses.
Thanks,
Joe
Re: modal from button
Posted: 2016-12-14 13:30
by TheSpooki
I'm an idiot, I got it working. Thanks so much for your help!
Thanks,
Joe
Re: modal from button
Posted: 2016-12-14 13:36
by DevGiu
TheSpooki wrote:I'm an idiot, I got it working. Thanks so much for your help!
Thanks,
Joe
So sorry to not answer before, since last week I'm very busy

but happy to see it's working