trentrichardson / jQuery-Impromptu

An extention to help provide a more pleasant way to spontaneously prompt a user for input.
http://trentrichardson.com/Impromptu/
MIT License
327 stars 144 forks source link

submit function message parm #50

Closed akeane1950 closed 9 years ago

akeane1950 commented 9 years ago

submit: function(event,value,message,form) I know what all of the parms are except the 'message' which I know is an object but I can't seem to find what it contains. Just thought I'd ask so I can see if there is anything interesting in there to use.

Thanks in advance.

trentrichardson commented 9 years ago

Message parameter is a JQuery object of the message in the current prompt state. It is useful if you need to make changes to the DOM within that state during the submit callback. For instance if you're validating the form and wanted to add an error message into the DOM you could use the message parameter. On Dec 14, 2014 2:59 AM, "Andrea Keane" notifications@github.com wrote:

submit: function(event,value,message,form) I know what all of the parms are except the 'message' which I know is an object but I can't seem to find what it contains. Just thought I'd ask so I can see if there is anything interesting in there to use.

Thanks in advance.

— Reply to this email directly or view it on GitHub https://github.com/trentrichardson/jQuery-Impromptu/issues/50.

akeane1950 commented 9 years ago
Trent,Thanks for your reply.  I have not gotten to deeply into using Impromptu yet.  I am still making up some examples for myself so I have a template of what I think I will use it for.  I have the forms and tour to complete.  I got sidetracked by a few other things but I am planning to use the form concept for a personal project and it seems the best way to do forms.  Tour is very interesting and would like to learn it so I can use it with any clients I might have in the future.Thanks again for your reply.TTFN... Andrea-----Original Message----- From: Trent Richardson Sent: Dec 14, 2014 7:12 PM To: trentrichardson/jQuery-Impromptu Cc: Andrea Keane Subject: Re: [jQuery-Impromptu] submit function message parm (#50) Message parameter is a JQuery object of the message in the current prompt state. It is useful if you need to make changes to the DOM within that state during the submit callback. For instance if you're validating the form and wanted to add an error message into the DOM you could use the message parameter. On Dec 14, 2014 2:59 AM, "Andrea Keane" notifications@github.com wrote: > submit: function(event,value,message,form) > > I know what all of the parms are except the 'message' which I know is an > > object but I can't seem to find what it contains. Just thought I'd ask so I > > can see if there is anything interesting in there to use. > > Thanks in advance. > > — > > Reply to this email directly or view it on GitHub > > https://github.com/trentrichardson/jQuery-Impromptu/issues/50. —Reply to this email directly or view it on GitHub.