Modal popup size

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
User avatar
alex4orly
 
 
Posts: 821
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Modal popup size

Post by alex4orly » Mon Jun 24, 2019 11:30 am

I am trying to use the Modal window, without the "X" to diable closing it
I am calling it from a htmp page Onload() with a link to the modal
But - I want it to show up on top of the calling page, and it comes up instead in full screen, covering the calling page completely

Any idea how to change it?

Thanks

User avatar
Pablo
 
Posts: 18579
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Modal popup size

Post by Pablo » Mon Jun 24, 2019 11:42 am

Which 'modal popup' are you referring to?
What is the URL of the page and what are your exact settings?

User avatar
alex4orly
 
 
Posts: 821
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Modal popup size

Post by alex4orly » Mon Jun 24, 2019 12:27 pm

Here is the URL : https://communitylifestyleaccommodation ... tandc.html
It is supposed to be used as an entry page for Terms & Condition before the visitor gets onto the calling page
The 2 buttons are NOT yet linked to anything

Iam using here the WWB JQuery Dialog

Thanks

User avatar
Pablo
 
Posts: 18579
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Modal popup size

Post by Pablo » Mon Jun 24, 2019 1:06 pm

You can hide the close button by unchecking 'Display close button' option.
Also, instead of loading it via 'onload', just select 'Show dialog automatically' or use a timer.

User avatar
alex4orly
 
 
Posts: 821
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Modal popup size

Post by alex4orly » Mon Jun 24, 2019 8:49 pm

OK, I will explain again :
This is the payment page: https://communitylifestyleaccommodation ... _test.html
In objects events, I trigger the Onload and inserted an event that does a LINK to the Modal Dialog at this URL
https://communitylifestyleaccommodation ... tandc.html

Iwant to force the visitor to read the terms before they decide to make a payment
I want this dialog to NOT have the closebutton, I have unchecked the close option in the object options
But, instead of coming as a popup, it come up full screen - this is what I am trying to fix

How?
Thaks again

User avatar
Pablo
 
Posts: 18579
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Modal popup size

Post by Pablo » Mon Jun 24, 2019 9:06 pm

I'm sorry, but I cannot see what you have done. Before I have the chance to view the source of the page is redirected to another page.
I think there is an error in the logic.

User avatar
alex4orly
 
 
Posts: 821
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Modal popup size

Post by alex4orly » Mon Jun 24, 2019 9:14 pm

OK, let's forget about what I am doing
Let's say this:

I have a screen "A"
On loading it, it want it to bring up a Modal dialog on top of itself (Screen "B") - I want that 2nd screen to be the size of the Modal dialog and NOT cover the entire screen "A"

How would you do that?

Cheers

User avatar
alex4orly
 
 
Posts: 821
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Modal popup size

Post by alex4orly » Tue Jun 25, 2019 3:48 am

Hello again,

OK, I resolved this part of the equation - please visit : https://communitylifestyleaccommodation ... _test.html
In the Onload() of this page I am calling the 2nd page / popup dialog which has in it the Terms & Conditions.

My problem now is -
1) If the visitor accepts the T&C, this popup will close and the visitor can make a payment, BUT
2) If the visitor declines - I want to close the popup and redirect the visitor to the home page of the websit

Here is the trap - once I cann window.close(); the next command to use href="www..." can no longer work becasue the window does not exist any more....

Any suggestion how to chain the 2nd command from the one button click?

Cheers

User avatar
Pablo
 
Posts: 18579
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Modal popup size

Post by Pablo » Tue Jun 25, 2019 5:49 am

I'm sorry, but I do not understand why you are using 'onload'. 'onload' is not the correct place to open a dialog. Not all scripts may be loaded at that point.
The dialog can automatically open without using events or else use a timer.

In the dialog you can define buttons with events to redirect the user to another page.

User avatar
alex4orly
 
 
Posts: 821
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Modal popup size

Post by alex4orly » Tue Jun 25, 2019 6:21 am

I am loading first the A dialog - the one with the payment details
I want to have the visitor first ACCEPT the Terms and conditions for the payment which are listed on Dialog B - the popup

Without clicking any button, how is Dialog B going to show up on top of dialog A, by some spirutual magic?

User avatar
Pablo
 
Posts: 18579
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Modal popup size

Post by Pablo » Tue Jun 25, 2019 6:27 am

I'm sorry, nested dialogs are not supported.
https://getbootstrap.com/docs/4.0/components/modal/

User avatar
alex4orly
 
 
Posts: 821
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Modal popup size

Post by alex4orly » Tue Jun 25, 2019 8:04 am

Sorry, it seems a misunderstanding - I never intended to have any nested dialogues

I am talking about:

1) One page loaded into a place holder of a master frame by clicking a menu option, then
2) A Modal single popup dialog comes on top of that

Cheers

User avatar
Pablo
 
Posts: 18579
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Modal popup size

Post by Pablo » Tue Jun 25, 2019 9:00 am

In that case you can use the built-in dialog. it will automatically popup.

Demo:
http://www.wysiwygwebbuilder.com/suppor ... orate.html

User avatar
alex4orly
 
 
Posts: 821
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Modal popup size

Post by alex4orly » Tue Jun 25, 2019 9:35 am

How?
1) Iclick a menu option
2) A screen comes up into the place holder of the master frame.
So, now, how does the modal dialogue know to come up on top of it?

Just wondering...

User avatar
Pablo
 
Posts: 18579
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Modal popup size

Post by Pablo » Tue Jun 25, 2019 9:54 am

A modal dialog will automatically open when the page loads.

See my demo:
http://www.wysiwygwebbuilder.com/suppor ... orate.html

Post Reply