marcosesperon / Messi

A simple message plugin for jQuery
http://marcosesperon.es/apps/messi/
146 stars 135 forks source link

Callback Selection Undefined #37

Open regdog opened 11 years ago

regdog commented 11 years ago

When I tried the example "Message with custom buttons (yes/no) and callback function", the alert message is "Your selection: Selection Undefined".

I downloaded Messi master from github and used messi.js. I think it is a bug.

suzannlarsen commented 10 years ago

I just ran into the same thing when downloading and using version 1.3. I even tried copying the exact code from http://marcosesperon.es/apps/messi/ to my own site to see if I could get it to work. It did not -- it gave me the same "undefined" result from clicking on a button. I then noticed that the demo page uses version 1.2, so I downloaded that version and voila... it worked! So I've just switched back to the older version.

suzannlarsen commented 9 years ago

I finally had to give up on Messi completely. I tested some others and went with "impromptu". It worked for what I required. http://trentrichardson.com/Impromptu/

jhyland87 commented 9 years ago

What was wrong with Messi?

The problem im having, is I have an input in the Messi, with the ID #test, and for some reason, $('#test').val() is ALWAYS null... idk why

suzannlarsen commented 9 years ago

I don't exactly remember anymore other than always getting an "undefined" result. It was so long ago. And 2 months later I just gave up on Messi, deleted it completely, and switched to using Impromptu. So I haven't done anything with Messi since May 2014. I am sorry I cannot provide you with more details. Best of luck to you!

jhyland87 commented 9 years ago

I had the same peoblem, then i realized the variable wasnt being defined inside the callback... prob the same as yours. On Aug 21, 2015 7:05 AM, "suzannlarsen" notifications@github.com wrote:

I don't exactly remember anymore other than always getting an "undefined" result. It was so long ago. And 2 months later I just gave up on Messi, deleted it completely, and switched to using Impromptu. So I haven't done anything with Messi since May 2014. I am sorry I cannot provide you with more details. Best of luck to you!

— Reply to this email directly or view it on GitHub https://github.com/marcosesperon/Messi/issues/37#issuecomment-133436279.