This extension gives a success (or error) message as a response when submitting comments asynchronously (E.g. with Ajax or Flash).
For more info see the documentation.
The Flash comment form on my website is currently using this extension. Feel free to post any questions or comments here or on the documentation page.
This is a fantastic concept. Thank you for sharing.
However, I’d like to know how to get the messages working. The comment upload works great, but I don’t see how to display success, or error messages.
Also is there a way to specify a particular container for those messages?
Thank you in advance for any help you might be able to give.
Hey Keola, sorry for the late reply, hope this still helps you out…
However, I’d like to know how to get the messages working. The comment upload works great, but I don’t see how to display success, or error messages.
This extension assumes you have an understanding of asynchronous requests and how to do them using javascript or flash. I will work on getting a javascript example for the documentation in the next day or so on how to do the request.
Basically, once you get the response back, you check it to see what the first character is: 0 for known error, 1 for submitted, 2 for pending review, and other for unknown error. In the case of a 0, 1, or 2, the text following the first character will be the appropriate message.
Also is there a way to specify a particular container for those messages?
You can change these messages in the language file. I havn’t tried it, but you may be able to use html here to put your message in a container. The way I am using it on my site is to just get the message and then stick it into an already made “container” (a flash text field) using script.
Feel free to post further if that doesn’t answer your questions or if you have more. You can check out the documentation too, that may also help.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.