I am one of hundreds of people who are embarrassed by nyroModal's lack of complete examples.
For such a multifunctional plugin, it is difficult to find one comprehensive example of most functions.
I try to open the form in the nyroModal window and submit the form to the page via Ajax, and then close the window based on the response. I know that this should be / simple, but without an example or clear documentation.
While I open it in the window and send it to the window, but ... there is no ajax. (Not sure if nyroModal can handle this. Not sure if I use "filters" since there is no example of how to implement these filters.)
Here is what I have for calling nyroModal:
<script type="text/javascript"> $('.nyroModal').nyroModal( { </script>
Here is my form, which is called in the nyroModal window: note: creating a class form: nyroModal, makes the form modal within the framework. (will also be a good example)
<form name="this" method="post" class="nyroModal" action="/vendor/orderDetail.cfm"> <cfoutput><input type="hidden" name="oid" value="#oid#"></cfoutput> <input type="text" name="comment"><input type="submit" value="Accept Product Request"> </form>
What I want to do is when the user submits the form, I want to send data via AJAX to the "action" page. This will create a JSON response and, depending on the response, close the window. So is this possible with nyroModal? After viewing MUCH MUCH, I can not find any links to this functionality, except for "functions", but it is not shown how to do it.
Can someone give me an example or some docs?
Of course, there should be an example illustrating the use of these functions, namely filters / callbacks.
If someone has examples, this will save us all the time, and NyroDev may stop responding to βerrorsβ that really just confuse people who require a clear set of documentation.