0

I am stuck in my project. I am working on a module for account management page. When the user update their billing address, a service call will be triggered to send request to a third party API to get a response indicating if the address if valid or not. If valid then display the returned normalized address in a popup box or overlay, the user can choose if he want to use that address or not. My question is that how to trigger displaying this popup box in php code?

Thanks!

1 Answer 1

0

Take a look at the Colorbox module.

You can find a few examples here.

Usage Example:

<a class="colorbox-load" href="http://example.com/?width=950&height=500&iframe=true">open URL in Colorbox (iframe)</a>
2
  • Hi, thanks for your reply. If I use this color box module, does that mean the popup need to be triggered by clicking a link? Can I open this popup using php code in my module, because this popup only need to be displayed under some conditions. There is not a link for user to click.
    – Cathy
    Commented May 1, 2014 at 12:51
  • I suppose you could use jQuery to click without actually clicking. stackoverflow.com/questions/2847185/…
    – Citricguy
    Commented May 1, 2014 at 22:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.