modal from button

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
TheSpooki
Posts: 14
Joined: 2016-05-19 13:29

modal from button

Post by TheSpooki » 2016-12-08 22:45

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

DevGiu
AppGini Super Hero
AppGini Super Hero
Posts: 151
Joined: 2016-05-27 09:08

Re: modal from button

Post by DevGiu » 2016-12-11 17:33

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

TheSpooki
Posts: 14
Joined: 2016-05-19 13:29

Re: modal from button

Post by TheSpooki » 2016-12-13 19:10

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

TheSpooki
Posts: 14
Joined: 2016-05-19 13:29

Re: modal from button

Post by TheSpooki » 2016-12-14 13:30

I'm an idiot, I got it working. Thanks so much for your help!
Thanks,
Joe

DevGiu
AppGini Super Hero
AppGini Super Hero
Posts: 151
Joined: 2016-05-27 09:08

Re: modal from button

Post by DevGiu » 2016-12-14 13:36

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 :oops: but happy to see it's working
/Giuseppe
Professional Outsourcing Services

Post Reply