Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

CB Auto Action: Pop-up Message

9 years 10 months ago #258182 by pasquale1980
CB Auto Action: Pop-up Message was created by pasquale1980
Is it possible to create a pop-up message with CB Auto Action?
Thank.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
9 years 10 months ago #258241 by krileon
Replied by krileon on topic CB Auto Action: Pop-up Message
Popups are generally done with Javascript to open a new window. Yes, it's doable using a Code action as Method can be set to Javascript or jQuery where you can supply the code to open a new window. New windows not opened via manual action (e.g. a click) however will be blocked pretty much guaranteed as the browser sees it as popup spam.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

9 years 10 months ago #258252 by pasquale1980
Replied by pasquale1980 on topic CB Auto Action: Pop-up Message
I created an Action that displays a pop-up message and it works great, but when I press on the avatar of a student profile (which I will not be displayed) shows the Pop-up alert and at the same time opens the profile page. Is there a way to display the pop-up and stay on the same page (without it being loaded the profile page)? I used the Triggers "Before Profile Display" and "Before Profile Request" but with the Pop-up page opens also the profile page.
Thank You.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
9 years 10 months ago #258292 by krileon
Replied by krileon on topic CB Auto Action: Pop-up Message
In your click binding you need to suppress the default behavior. Please see the below jQuery usage regarding this.

api.jquery.com/event.preventDefault/


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

9 years 10 months ago #258329 by pasquale1980
Replied by pasquale1980 on topic CB Auto Action: Pop-up Message
As I do to suppress the default behavior of the link in the profilebook (see screenshot)?
I have tried in different ways but I can not make it work.
Attachments:

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
9 years 10 months ago #258365 by krileon
Replied by krileon on topic CB Auto Action: Pop-up Message
Please see the jQuery documentation. In your jQuery binding you need to suppress the default event behavior. You can also try the below to stop event bubbling, which maybe what is happening depending on what you're binding to.

api.jquery.com/event.stopImmediatePropagation/
api.jquery.com/event.stopPropagation/


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum