Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created activateAjaxForms plug in #31

Closed
wants to merge 1 commit into from
Closed

Created activateAjaxForms plug in #31

wants to merge 1 commit into from

Conversation

emiaj
Copy link
Contributor

@emiaj emiaj commented Jan 28, 2013

Useful for scenarios where you get a form from an ajax call and you need to bootstrap the validation hooks.
E.g.: SPA(Single Page Applications) widgets.

Useful for scenarios where you get a form from an ajax call and you need to bootstrap the validation hooks.
E.g.: SPA(Single Page Applications) widgets.
@emiaj
Copy link
Contributor Author

emiaj commented Jan 28, 2013

I have a custom app where I know I will get some html forms from ajax calls, and I have added a global hook as follows:
https://gist.github.com/4652155

@jmarnold
Copy link
Contributor

Because fubuvalidation has a dependency on jquery.continuations AND because this is a symptom of a lower-level issue, I want to beat this a different way. I just opened three news issues against jquery.continuations:

What I would like to do instead is this:

  • Make the code activation code in ValidationActivator.js a jquery plugin method
  • Register a continuation policy that can act on the statusCode/contentType and run the activate method on the result

Validation isn't the only time we're going to want to do this sort of thing so I'd prefer to beat it now.

@jmarnold jmarnold closed this in 6c0668a Jan 30, 2013
@emiaj
Copy link
Contributor Author

emiaj commented Jan 30, 2013

Thumbs up, I like it.

@jmarnold
Copy link
Contributor

Good. Do you think the continuation policy example will work for you?

@emiaj
Copy link
Contributor Author

emiaj commented Jan 30, 2013

I am sorry, I don't follow (late over here :D)...which example?

@jmarnold
Copy link
Contributor

I commented on the gist you linked earlier in the thread.

@emiaj
Copy link
Contributor Author

emiaj commented Jan 30, 2013

Hi Josh, sorry, yes yes, what you outlined in there makes a lot of sense to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants