Error Messages: The method warning was not found in component D:\ColdFusion10\cfusion\wwwroot\coldbox\system\plugins\MessageBox.cfc.
Ensure that the method is defined, and that it is spelled correctly.
Funny thing is when im check this “D:\ColdFusion10\cfusion\wwwroot\coldbox\system\plugins\MessageBox.cfc” file is there even when I pest this path in WINDOWS - RUN - BOX. it is opening the file.
I was writing “warning” method name. after checking messageBox.cfc. I found name “warn” Not “Warning”, I changed the name this error not coming anymore. But still message box not appearing.
Here is what my assumption is from that error message.
there is no warning method, means that you should be using the method warn as I said there is no method called warning it is warn and you can see this by opening the messagebox plugin.
This is example script of coldfusion. im trying to use in my View confirmation box is not appearing. if it will true then it will call my delete method …
sorry im just learning. I’ll keep in my mind not to use coldfusion UI Tags. im trying jquery now you have any example where you used confirmation box ?
What a coincidence! I was just trying out the MessageBox myself today for the first time, and I run into the same thing with the “warn” and “warning” differences. I took the liberty of changing the source code and submitted a pull request for the ColdBox guys to look at:
And since we are on the topic, I also submitted another pull request for adding the messages returned as an array as well instead of simply a string separated by <br/>
@Andrew Scott,
Just to clarify, I already made the changes to their code. You can just copy them into your CFC from the pull request I linked above, even if they decide not to implement them in their plugin.
That’s why I went oooh, because I have not got around to doing anything except raise a ticket many years ago. Problem is I forgot about it as I don’t use it much any more.
Anyway look forward to maybe Luis adding it to ColdBox.