jcepopup.open(decodeURIComponent(tmpobj.link), '', 'external_links2', 'ajax', {width:400,height:300});
This works in mediabox 1.2.9 (which was installed on this site), but fails with mediabox 2.x (the page simply darkens, but no popup opens).
Is this caused by the empty parameter ?
Thanks,
Richard
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 Online
Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)
09:00 - 17:00 Europe/London (BST)
#109739 jcepopup.open format
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 Wednesday, 15 December 2021 11:59 GMT
Monday, 13 December 2021 11:33 GMT
sageman
Hello Ryan,
an old neglected site with a custom Joomla component landed in my lap, and I am trying to get it all up2date. The extension is using jce mediabox to open some windows like so:
Monday, 13 December 2021 11:52 GMT
Ryan
That should technically work. Please post a link to an example.
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Monday, 13 December 2021 14:37 GMT
sageman
Example URL: http://test2.vtg-bw.net/mitglieder/interaktive-mitgliederkarte
Though on this page, the code creating the popup is slightly different:
jcepopup.open(\''.str_replace('/index.php','',$_SERVER['PHP_SELF']).'/component/vtgmembers/member/'.$project->projectnumber.'?tmpl=component\', \''.$project->projectnumber.' - '.$project->projectname.'\', \'external_links2\', \'ajax\', {width:400,height:300});
The any of the markers should open a popup. Same code works in mediabox 1.2.9
Edited by sageman on 2021-12-13 14:38 GMT
Monday, 13 December 2021 15:22 GMT
Ryan
Please try JCE MediaBox 2.1.3 Beta 5 - https://www.joomlacontenteditor.net/downloads/mediabox/development
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Monday, 13 December 2021 16:07 GMT
sageman
Your update fixed the popup - the requested page shows, but it does not respect the width & height given (width:400,height:300), but goes to 100% width.
Also, the requested page is added to the bottom list as the last item, so each time I open a popup, the list grows (cleared by emptying browser cache)...
Also, the requested page is added to the bottom list as the last item, so each time I open a popup, the list grows (cleared by emptying browser cache)...
Wednesday, 15 December 2021 11:59 GMT
Ryan
Please try beta 6 - https://www.joomlacontenteditor.net/downloads/mediabox/development
Ryan Demmer
Lead Developer / CEO / CTO
Just because you're not paranoid doesn't mean everybody isn't out to get you.
Please wait
Your post is being submitted…