I don't think there is a way to unwire an event right now, but I
have't dug through the code yet to find out.
-Jesse
> --
> You received this message because you are subscribed to the Google Groups
> "Nitrogen Project / The Nitrogen Web Framework for Erlang" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/nitrogenweb/-/0MDPFY1jdGcJ.
> To post to this group, send email to nitro...@googlegroups.com.
> To unsubscribe from this group, send email to
> nitrogenweb...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/nitrogenweb?hl=en.
>
--
Jesse Gumm
Sigma Star Systems
414.940.4866
gu...@sigma-star.com
http://www.sigma-star.com
LiveValidation keeps its own data structure with references to the to be validated form elements.
Kind of double administration.
In Zotonic we changed this, so that LiveValidation will fetch the validation from the DOM and not from its own data structure.
You can check our code, it shouldn't be too hard to port our changes to Nitrogen.
- Marc
I've also been planning on borrowing some of your smtp support as well :)
-Jesse
> I'll have to give that a looksee, thanks Marc.
>
> I've also been planning on borrowing some of your smtp support as well :)
You are more than welcome.
Mail the list or me when you have any questions.
Good to see both projects advance.
- Marc
-Jesse
I have not yet had a chance to play with incorporating Zotonic's
validation methods.
I definitely encourage you to take a crack at it.
-Jesse
--
Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 || sigma-star.com || @jessegumm
So it's sending the context but for whatever reason Nitrogen.js isn't
saving the context and therefore resending the original context back
to the server? It honestly sounds to me like that might be unrelated.
I've not looked too deeply into the context transfer along with the
pickling and depickling that goes along with it as up until now, it
has Just Worked (TM). I wonder if these two issues aren't unrelated.
It seems to be to be the case that they *are* unrelated, just two
separate issues.
I say this because I've not had problems dynamically adding new
validators to new elements. The problem encountered, as I understand
it, is the ability to remove a validator from an object, or in some
cases, for the validators to break if one of the elements targeted by
a validator is removed.
But I can do some tracing myself to see why it might not be storing
the new context. That's odd, to say the least.
-Jesse