You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#101147 Pop-up width and height

Posted in ‘Mediabox’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Tuesday, 24 September 2019 11:23 BST

sohopros
Hi,

We have an Acymailing subscribe module in the article and we created a pop-up module.

When the user clicks on the link, the pop-up module with Acymailing subscriptions appear.

After they fill the form ( name and e-mail), we redirect them to the pdf file.

Name and e-mail are small text ( width and height 800x820) but the PDF file is large ( it is not possible to read the PDF in the small pop-up).

Is it possible to expand pop-up after they submit the form? Or make pop-up auto width and height? So it takes a width and height it needed?

Please advise,
Sandra

Ryan
We have an Acymailing subscribe module in the article and we created a pop-up module.
When the user clicks on the link, the pop-up module with Acymailing subscriptions appear.


Please post a link to an example if possible.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

sohopros
Any updates on this issue?

Ryan
Is it possible to expand pop-up after they submit the form? Or make pop-up auto width and height? So it takes a width and height it needed?


Unfortunately this is not possible within a single popup. The popup size is set by the original popup dimensions you specify, and only changes when the window is resized.

One option you can try, although it might be overly complex, is to open a new popup within the existing one when the Download button is clicked, ie: the Download button opens a new article which contains a popup link to the pdf. This popup link would have a data-mediabox-autopopup="multiple" attribute set, to automatically open the popup when the page is loaded.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.