Launch modal popup from within model

74 views
Skip to first unread message

Mike Pearl

unread,
Jul 30, 2012, 4:51:48 PM7/30/12
to joomla-de...@googlegroups.com
In the model I use cached information to access a secure site.  If the site rejects the logon, or I don't have the cached info I need to launch a popup window from the remote site so they can log on.  It's obvious how to create an anchor which, when clicked, will show a modal window.  BUT how can I have my model just launch the modal window... is it possible?

Thanks,

Mike

Bernard Lechler

unread,
Jul 30, 2012, 6:23:31 PM7/30/12
to joomla-de...@googlegroups.com
Perhaps you could have your model load a javascript file that pops up the login dialog?

Niels Braczek

unread,
Jul 30, 2012, 9:54:01 PM7/30/12
to joomla-de...@googlegroups.com
A model should *never* try to generate output.
Instead, throw an exception and catch it in the controller in order to
redirect to an appropriate page.

Regards,
Niels

--
| http://barcamp-wk.de · 2. Barcamp Westküste Frühjahr 2013 |
| http://www.bsds.de · BSDS Braczek Software- und DatenSysteme |
| Webdesign · Webhosting · e-Commerce · Joomla! Content Management |
------------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages