Skip to Content Skip to Menu

Auto Action HTML

8 years 11 months ago #272888 by edmundcheong
Auto Action HTML was created by edmundcheong
test

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

8 years 11 months ago #272889 by edmundcheong
Replied by edmundcheong on topic Auto Action HTML
I am testing the html code to run "After User Profile Update Display"

Everytime I save, < s c r i p t > changes to < s - c r i p t > causing errors in the codes.. The dash appears after the S before the C

Am I doing something wrong?

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

8 years 11 months ago - 8 years 11 months ago #272890 by edmundcheong
Replied by edmundcheong on topic Auto Action HTML
Some how I cant enter the codes here.. could be your firewall rejecting my sample codes..

trying again..

I am testing the html code to run "After User Profile Update Display"
Code:
<!DOCTYPE html> <html> <body> ~ p ~ Click the button to open a new window called "MsgWindow" with some text.~ /p ~ ~ button on~click="myFunction()" ~ Try it ~ /button ~ ~ s c r i p t ~ fun~ction myFunction() { var myWindow = window . open("", "MsgWindow", "width=200, height=100"); myWindow . document . write("~p~This is 'MsgWindow'. I am 200px wide and 100px tall!~ /p ~"); } ~ /s c r i p t ~ </body> </html>

Everytime I save, script changes to s-cript causing errors in the codes..

Please ignore the ~ and additional spaces.. Had to to do it this way as the direct codes will not allow me to post it here..
Last edit: 8 years 11 months ago by edmundcheong.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48435
  • Thanks: 8275
  • Karma: 1443
8 years 11 months ago #272908 by krileon
Replied by krileon on topic Auto Action HTML
You are including the entire HTML structure, that's not valid. The <html and <body are already established by Joomla. The Code action also has a Method for JS that handles the script output.

Yes, we've high security here. Sometimes it's best to just attach a text file with your code in it.


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.

8 years 11 months ago #272922 by edmundcheong
Replied by edmundcheong on topic Auto Action HTML

krileon wrote: You are including the entire HTML structure, that's not valid. The <html and <body are already established by Joomla. The Code action also has a Method for JS that handles the script output.

Yes, we've high security here. Sometimes it's best to just attach a text file with your code in it.


Thanks what I am trying to achieve here is to click open a window. So the codes are a combi of HTML and JS.

How do I combine both HTML and JS in a single code? Do I need to write another action?

I am trying to print a modal popup but I am failing to do so.

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

8 years 11 months ago #272923 by edmundcheong
Replied by edmundcheong on topic Auto Action HTML
I got this to work but somehow when I add the print I am unable to print. Do I need to add other codes?
Attachments:

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

Moderators: beatnantkrileon
Powered by Kunena Forum