AutoAction - Javascript support

3 years 6 months ago - 3 years 6 months ago #320641 by smalldragoon
AutoAction - Javascript support was created by smalldragoon
Hi,
I'm trying to get some javascript inline executed.
for troubleshooting, I tried for example some
Windows.open("mysite.com");
but nothing is happening.
I assume it is somehting related maybe to the fact we need to do return or echo something ? ( my guess is this as I tried as well console.log, and I get nothing in the console).
Thanks for your insights

Please Log in to join the conversation.

3 years 6 months ago #320659 by krileon
Replied by krileon on topic AutoAction - Javascript support
Use a Code action with Method set to JavaScript (Inline) then supply your JS. that's all you'll need to do, but this assumes you're using a trigger that actually has output. For example outputting JS during a save operation won't do anything as that has no display. Outputting JS before or after profile display for example will work.


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.
The following user(s) said Thank You: smalldragoon

Please Log in to join the conversation.

3 years 6 months ago - 3 years 6 months ago #320701 by smalldragoon
Replied by smalldragoon on topic AutoAction - Javascript support
Trigger is " joomla_OnAfterUserLogin", so there is a lot displayed ( and relaoded ) no ?

Please Log in to join the conversation.

3 years 6 months ago #320711 by krileon
Replied by krileon on topic AutoAction - Javascript support
Nothing displays during that trigger. That's during a PHP login operation. Immediately after that trigger is a redirect. So there is no output during that trigger.


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.
The following user(s) said Thank You: smalldragoon

Please Log in to join the conversation.

3 years 5 months ago #320723 by smalldragoon
Replied by smalldragoon on topic AutoAction - Javascript support
ah ok , make sense then .. :(
will try to find another event then ....
thx

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.196 seconds

Facebook Twitter LinkedIn