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
modal from button
Re: modal from button
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'
});
/Giuseppe
Professional Outsourcing Services
Professional Outsourcing Services
Re: modal from button
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
Thanks,
Joe
Re: modal from button
I'm an idiot, I got it working. Thanks so much for your help!
Thanks,
Joe
Thanks,
Joe
Re: modal from button
So sorry to not answer before, since last week I'm very busy but happy to see it's workingTheSpooki wrote:I'm an idiot, I got it working. Thanks so much for your help!
Thanks,
Joe
/Giuseppe
Professional Outsourcing Services
Professional Outsourcing Services