Action Objects
ACTION objects are special objects which can do some background actions on client-side: closing popups, windows, toggling visibility of messages etc. This kind of objects can contain action name (type) and endless count of data string attributes
Syntax:
Copy
{ ACTION | action_name | "action_data_0" | "action_data_1" | . . . | "action_data_N" }
Currently there are next list of supported types of actions:
Actions with Frames:
1) closepopup - closing FRAME popups
Short form (just closing popup without disabling frame link):
Copy
{ ACTION | closepopup | "frame_unique_name" }
Extended form (closing popup with formatted disabling frame link):
Copy
{ ACTION | closepopup | "frame_unique_name" | "disablelink" | "status_type" | "fontawesome_v4_icon" | "New text of disabled link" }
* All string arguments backward from and to start are not strictly required and also can be empty strings
2) disablepopup - more simple variant of previous action. Can disable frame links without closing opened popups
Syntax:
Copy
{ ACTION | disablepopup | "frame_unique_name" | "status_type" | "fontawesome_v4_icon" | "New text of disabled link" }
3) changeframeurl - change url of FRAME popups
Copy
{ ACTION | changeframeurl | "frame_unique_name" | "http://newurladdress.com" }
4) disableframemsg - can disable first frame link in message if we know message ID
Copy
{ ACTION | disableframemsg | "123456" | "status_type" | "fontawesome_v4_icon" | "New text of disabled link" }
Important to note that "status_type" argument value currently can be only "success", "fail" and "default". FA icons for example: "check" and "times"
Let's try to disable popup and link for frame for example from FRAME section of documentation. We just need to send message to client and use unique frame name from example (test_frame_wiki__1):
Copy
{ META | $$hidemsg }
{ ACTION | closepopup | "test_frame_wiki__1" | "disablelink" | "fail" | "times" | "You entered incorrect data" }
As result, if popup was opened, it will be closed and link:

Will change to this:

Due to $$hidemsg meta-tag on client-side there will be no any messages and user won't see anything another than result of action
Actions with Windows:
1) closewindow - closing WINDOW windows
Extended form:
Copy
{ ACTION | closewindow | "frame_unique_name" | "disablelink" | "status_type" | "fontawesome_v4_icon" | "New text of disabled link" }
closewindow action syntax are identical to closepopup, but with different action name as first argument
Actions with Messages:
1) hidemsg - hide message in chat by message ID
Copy
{ ACTION | hidemsg | "123456" }
2) showmsg - turn hidden message to be visible again
Copy
{ ACTION | showmsg | "123456" }